mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 11:35:55 +08:00
Added timeout to get request (so we detect disconnect a lot faster)
CURA-49
This commit is contained in:
parent
b3490ee9b9
commit
f9a1b75c7c
@ -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)
|
||||
return requests.get("http://" + self._address + self._api_prefix + path, timeout = 2)
|
Loading…
x
Reference in New Issue
Block a user