ignoring error when IOLoop has already started

This commit is contained in:
Gabriel Falcão 2015-12-14 02:11:04 -02:00
parent 4e09d5a331
commit 92db55640b
1 changed files with 4 additions and 1 deletions

View File

@ -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()