mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-08 10:59:00 +08:00
Counter is now only reset if no previous state was set
This commit is contained in:
parent
d0823ebff0
commit
ad496a6467
@ -280,7 +280,8 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||||||
self._post_reply = None # It can happen that the wrapped c++ object is already deleted.
|
self._post_reply = None # It can happen that the wrapped c++ object is already deleted.
|
||||||
return
|
return
|
||||||
else:
|
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
|
# Check that we aren't in a timeout state
|
||||||
if self._last_response_time and not self._connection_state_before_timeout:
|
if self._last_response_time and not self._connection_state_before_timeout:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user