print port

This commit is contained in:
j 2020-12-05 11:31:14 +01:00
parent f57dfcfaf7
commit 2a3b48860d
2 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
camera.json camera.json
__pycache__

View File

@ -76,10 +76,10 @@ class ControlQueue:
self._worker = threading.Thread(target=self.worker) self._worker = threading.Thread(target=self.worker)
self._worker.start() self._worker.start()
def put(self, filename): def put(self, command):
if self.q.empty(): if self.q.empty():
self.camera.abort = False self.camera.abort = False
self.q.put(filename) self.q.put(command)
def join(self): def join(self):
self.shutdown = True self.shutdown = True
@ -208,6 +208,7 @@ def main():
'gzip': True, 'gzip': True,
} }
app = Application(handlers, **options) app = Application(handlers, **options)
print('listening on http://%s:%s/' % (ADDRESS, PORT))
app.listen(PORT, ADDRESS) app.listen(PORT, ADDRESS)
main = IOLoop.instance() main = IOLoop.instance()