ignoring error when IOLoop has already started
This commit is contained in:
parent
4e09d5a331
commit
92db55640b
|
@ -97,7 +97,10 @@ class TornadoServer(object):
|
|||
HTTPretty.disable()
|
||||
http = HTTPServer(app)
|
||||
http.listen(int(port))
|
||||
IOLoop.instance().start()
|
||||
try:
|
||||
IOLoop.instance().start()
|
||||
except RuntimeError:
|
||||
pass
|
||||
|
||||
app = self.get_handlers()
|
||||
|
||||
|
|
Loading…
Reference in New Issue