diff options
author | Nino van Hooff <ninovanhooff@gmail.com> | 2020-05-14 16:14:51 +0300 |
---|---|---|
committer | Nino van Hooff <ninovanhooff@gmail.com> | 2020-05-14 16:14:51 +0300 |
commit | a3f968188fa8d7c8d6f84921769dee240495619f (patch) | |
tree | 34d187c80b0824bf09c21a765c64055abf4aa6fc /plugins/Toolbox/src | |
parent | b6b6a3998946f9c8a24eecf4a9d1719f2c93f9ff (diff) |
Add timeout to CloudPackageChecker request
Prevents it from getting stuck in the SYNCING state
CURA-7290
Diffstat (limited to 'plugins/Toolbox/src')
-rw-r--r-- | plugins/Toolbox/src/CloudSync/CloudPackageChecker.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/Toolbox/src/CloudSync/CloudPackageChecker.py b/plugins/Toolbox/src/CloudSync/CloudPackageChecker.py index 9c372096af..ef8e82f576 100644 --- a/plugins/Toolbox/src/CloudSync/CloudPackageChecker.py +++ b/plugins/Toolbox/src/CloudSync/CloudPackageChecker.py @@ -67,6 +67,7 @@ class CloudPackageChecker(QObject): self._application.getHttpRequestManager().get(url, callback = self._onUserPackagesRequestFinished, error_callback = self._onUserPackagesRequestFinished, + timeout=10, scope = self._scope) def _onUserPackagesRequestFinished(self, reply: "QNetworkReply", error: Optional["QNetworkReply.NetworkError"] = None) -> None: |