mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 18:57:52 -06:00
Recreate network manager count is now always increased once
This commit is contained in:
parent
65a2cedf9c
commit
28bfc36472
1 changed files with 1 additions and 0 deletions
|
@ -246,6 +246,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||
# Re-creating the QNetworkManager seems to fix this issue.
|
||||
if self._last_response_time and self._connection_state_before_timeout:
|
||||
if time_since_last_response > self._recreate_network_manager_time * self._recreate_network_manager_count:
|
||||
self._recreate_network_manager_count += 1
|
||||
# It can happen that we had a very long timeout (multiple times the recreate time).
|
||||
# In that case we should jump through the point that the next update won't be right away.
|
||||
while time_since_last_response - self._recreate_network_manager_time * self._recreate_network_manager_count > self._recreate_network_manager_time:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue