🐛 Fix held back messages not actually being sent
Probably part of #3653
This commit is contained in:
1 parent
9dd1e95eae
commit
f1d4cb670a
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user