From f1d4cb670a3ae29bebd7ad8373e8ca072caf033f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 27 Jul 2020 11:30:58 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20held=20back=20messages=20n?= =?UTF-8?q?ot=20actually=20being=20sent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Probably part of #3653 --- src/octoprint/server/util/sockjs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/octoprint/server/util/sockjs.py b/src/octoprint/server/util/sockjs.py index 7c40aa8ee..3848d8298 100644 --- a/src/octoprint/server/util/sockjs.py +++ b/src/octoprint/server/util/sockjs.py @@ -242,6 +242,7 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection, delta = self._last_current + self._base_rate_limit * self._throttle_factor - now if delta > 0: self._held_back_current = threading.Timer(delta, lambda: self.on_printer_send_current_data(data)) + self._held_back_current.start() return self._last_current = now