mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 04:07:57 -06:00
Added timeout to get request (so we detect disconnect a lot faster)
CURA-49
This commit is contained in:
parent
b3490ee9b9
commit
f9a1b75c7c
1 changed files with 1 additions and 1 deletions
|
@ -186,4 +186,4 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||||
self._progress_message.setProgress(0)
|
self._progress_message.setProgress(0)
|
||||||
|
|
||||||
def _httpGet(self, path):
|
def _httpGet(self, path):
|
||||||
return requests.get("http://" + self._address + self._api_prefix + path)
|
return requests.get("http://" + self._address + self._api_prefix + path, timeout = 2)
|
Loading…
Add table
Add a link
Reference in a new issue