mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 20:35:59 +08:00
Use the semantically more correct infinity
This commit is contained in:
parent
58d31beeb8
commit
720dd9c50c
@ -290,7 +290,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||
if self._last_request_time:
|
||||
time_since_last_request = time() - self._last_request_time
|
||||
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.
|
||||
# Sometimes the qNetwork manager incorrectly reports the network status on Mac & Windows.
|
||||
|
Loading…
x
Reference in New Issue
Block a user