mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 16:39:00 +08:00
Add timeout to CloudPackageChecker request
Prevents it from getting stuck in the SYNCING state CURA-7290
This commit is contained in:
parent
b6b6a39989
commit
a3f968188f
@ -67,6 +67,7 @@ class CloudPackageChecker(QObject):
|
|||||||
self._application.getHttpRequestManager().get(url,
|
self._application.getHttpRequestManager().get(url,
|
||||||
callback = self._onUserPackagesRequestFinished,
|
callback = self._onUserPackagesRequestFinished,
|
||||||
error_callback = self._onUserPackagesRequestFinished,
|
error_callback = self._onUserPackagesRequestFinished,
|
||||||
|
timeout=10,
|
||||||
scope = self._scope)
|
scope = self._scope)
|
||||||
|
|
||||||
def _onUserPackagesRequestFinished(self, reply: "QNetworkReply", error: Optional["QNetworkReply.NetworkError"] = None) -> None:
|
def _onUserPackagesRequestFinished(self, reply: "QNetworkReply", error: Optional["QNetworkReply.NetworkError"] = None) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user