From 720dd9c50cf85d511e05366f12636ccc85240558 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Mon, 26 Sep 2016 16:28:06 +0200 Subject: [PATCH] Use the semantically more correct infinity --- NetworkPrinterOutputDevice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NetworkPrinterOutputDevice.py b/NetworkPrinterOutputDevice.py index acfc566b02..e2fe36f118 100644 --- a/NetworkPrinterOutputDevice.py +++ b/NetworkPrinterOutputDevice.py @@ -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.