Browse Source

single process

Davide Alberani 9 năm trước cách đây
mục cha
commit
b815189440
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      eventman_server.py

+ 1 - 2
eventman_server.py

@@ -33,8 +33,7 @@ def main():
     )
 
     http_server = tornado.httpserver.HTTPServer(application)
-    http_server.bind(options.port)
-    http_server.start(0)
+    http_server.listen(options.port)
     tornado.ioloop.IOLoop.instance().start()