summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-22 03:54:59 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-22 03:54:59 +0100
commit7bb9f21985abae3c15b6be9d6b7f7f8ba35405ba (patch)
treea663109a3438b772b7a429afa795e571111bef48
parent[SimplydebridCom] Typo (diff)
downloadpyload-7bb9f21985abae3c15b6be9d6b7f7f8ba35405ba.tar.xz
[UpdateManager] Fix https://github.com/pyload/pyload/issues/1274
-rw-r--r--module/plugins/hooks/UpdateManager.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py
index ca94548ea..7d8f44fef 100644
--- a/module/plugins/hooks/UpdateManager.py
+++ b/module/plugins/hooks/UpdateManager.py
@@ -28,7 +28,7 @@ def exists(path):
class UpdateManager(Hook):
__name__ = "UpdateManager"
__type__ = "hook"
- __version__ = "0.47"
+ __version__ = "0.48"
__config__ = [("activated" , "bool" , "Activated" , True ),
("mode" , "pyLoad + plugins;plugins only", "Check updates for" , "pyLoad + plugins"),
@@ -136,6 +136,7 @@ class UpdateManager(Hook):
@threaded
def updateThread(self):
+ self.core.api.pauseServer()
self.updating = True
status = self.update(onlyplugin=self.getConfig('mode') == "plugins only")
@@ -144,6 +145,7 @@ class UpdateManager(Hook):
self.core.api.restart()
else:
self.updating = False
+ self.core.api.unpauseServer()
@Expose