From a652ddbdd89279cd05206ea637f060d7b93cf34e Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 1 Sep 2017 14:54:57 +0200 Subject: [PATCH] Reset lastResponseTime when trying to connect CURA-3869 --- plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py index 8c13c344aa..96c511bccb 100755 --- a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py +++ b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py @@ -756,6 +756,8 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice): self._createNetworkManager() + self._last_response_time = time() # Ensure we reset the time when trying to connect (again) + self.setConnectionState(ConnectionState.connecting) self._update() # Manually trigger the first update, as we don't want to wait a few secs before it starts. if not self._use_stream: