From f9a1b75c7c7585828ed0f71cd51546c1c5abacfe Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 25 Apr 2016 15:00:00 +0200 Subject: [PATCH] Added timeout to get request (so we detect disconnect a lot faster) CURA-49 --- NetworkPrinterOutputDevice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NetworkPrinterOutputDevice.py b/NetworkPrinterOutputDevice.py index 5c834876db..e33105595c 100644 --- a/NetworkPrinterOutputDevice.py +++ b/NetworkPrinterOutputDevice.py @@ -186,4 +186,4 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice): self._progress_message.setProgress(0) def _httpGet(self, path): - return requests.get("http://" + self._address + self._api_prefix + path) \ No newline at end of file + return requests.get("http://" + self._address + self._api_prefix + path, timeout = 2) \ No newline at end of file