🐛 Fix held back messages not actually being sent

Probably part of #3653
This commit is contained in:
Gina Häußge committed 2020-07-27 11:35:07 +02:00
1 parent 9dd1e95eae
commit f1d4cb670a
1 file changed
+1
+1
View File
@@ -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