mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Use the semantically more correct infinity
This commit is contained in:
parent
58d31beeb8
commit
720dd9c50c
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||||
if self._last_request_time:
|
if self._last_request_time:
|
||||||
time_since_last_request = time() - self._last_request_time
|
time_since_last_request = time() - self._last_request_time
|
||||||
else:
|
else:
|
||||||
time_since_last_request = 1000000 # An irrelevantly large number of seconds
|
time_since_last_request = float("inf") # An irrelevantly large number of seconds
|
||||||
|
|
||||||
# Connection is in timeout, check if we need to re-start the connection.
|
# Connection is in timeout, check if we need to re-start the connection.
|
||||||
# Sometimes the qNetwork manager incorrectly reports the network status on Mac & Windows.
|
# Sometimes the qNetwork manager incorrectly reports the network status on Mac & Windows.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue