diff --git a/src/octoprint/server/__init__.py b/src/octoprint/server/__init__.py index 3cc9bdde8..f727db996 100644 --- a/src/octoprint/server/__init__.py +++ b/src/octoprint/server/__init__.py @@ -490,7 +490,7 @@ class Server(object): ## Tornado initialization starts here ioloop = IOLoop() - ioloop.make_current() + ioloop.install() self._router = SockJSRouter(self._create_socket_connection, "/sockjs", session_kls=util.sockjs.ThreadSafeSession) @@ -760,9 +760,7 @@ class Server(object): except (KeyboardInterrupt, SystemExit): pass except: - self._logger.fatal("Now that is embarrassing... Something really really went wrong here. Please report " - "this including reproduction steps, octoprint.log and the stacktrace below in " - "OctoPrint's bugtracker. Thanks!") + self._logger.fatal("Now that is embarrassing... Something really really went wrong here. Please report this including the stacktrace below in OctoPrint's bugtracker. Thanks!") self._logger.exception("Stacktrace follows:") def _create_socket_connection(self, session): diff --git a/src/octoprint/vendor/sockjs/tornado/router.py b/src/octoprint/vendor/sockjs/tornado/router.py index 103c346ad..e20619e89 100644 --- a/src/octoprint/vendor/sockjs/tornado/router.py +++ b/src/octoprint/vendor/sockjs/tornado/router.py @@ -91,7 +91,7 @@ class SockJSRouter(object): self._connection = connection # Initialize io_loop - self.io_loop = io_loop or ioloop.IOLoop.current() + self.io_loop = io_loop or ioloop.IOLoop.instance() # Settings self.settings = DEFAULT_SETTINGS.copy()