print port
This commit is contained in:
parent
f57dfcfaf7
commit
2a3b48860d
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
camera.json
|
||||
__pycache__
|
||||
|
|
|
@ -76,10 +76,10 @@ class ControlQueue:
|
|||
self._worker = threading.Thread(target=self.worker)
|
||||
self._worker.start()
|
||||
|
||||
def put(self, filename):
|
||||
def put(self, command):
|
||||
if self.q.empty():
|
||||
self.camera.abort = False
|
||||
self.q.put(filename)
|
||||
self.q.put(command)
|
||||
|
||||
def join(self):
|
||||
self.shutdown = True
|
||||
|
@ -208,6 +208,7 @@ def main():
|
|||
'gzip': True,
|
||||
}
|
||||
app = Application(handlers, **options)
|
||||
print('listening on http://%s:%s/' % (ADDRESS, PORT))
|
||||
app.listen(PORT, ADDRESS)
|
||||
|
||||
main = IOLoop.instance()
|
||||
|
|
Loading…
Reference in New Issue
Block a user