Reset lastResponseTime when trying to connect

CURA-3869
This commit is contained in:
Jaime van Kessel 2017-09-01 14:54:57 +02:00
parent be1b5cd83a
commit a652ddbdd8

View file

@ -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: