Counter is now only reset if no previous state was set

This commit is contained in:
Jaime van Kessel 2016-09-08 17:27:18 +02:00
parent f75b4739f6
commit f5886e5ecc

View file

@ -280,7 +280,8 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
self._post_reply = None # It can happen that the wrapped c++ object is already deleted.
return
else:
self._recreate_network_manager_count = 1
if not self._connection_state_before_timeout:
self._recreate_network_manager_count = 1
# Check that we aren't in a timeout state
if self._last_response_time and not self._connection_state_before_timeout: