From: Calin Crisan Date: Sun, 19 Jan 2014 12:45:14 +0000 (+0200) Subject: tornado 3.x no longer has the IOLoop.running() method X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=d958858d00e1e407ed2b4be8e37f5daccc5eb328;p=motioneye-debian tornado 3.x no longer has the IOLoop.running() method --- diff --git a/motioneye.py b/motioneye.py index 3474511..4c77a42 100755 --- a/motioneye.py +++ b/motioneye.py @@ -103,9 +103,8 @@ def _configure_signals(): # shut down the IO loop if it has been started ioloop = tornado.ioloop.IOLoop.instance() - if ioloop.running(): - ioloop.stop() - logging.info('server stopped') + ioloop.stop() + logging.info('server stopped') if thumbnailer.running(): thumbnailer.stop()