mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-26 18:10:43 +00:00
Remove timer in pluginmanager since update calls will be handled by
component now
This commit is contained in:
parent
4eb175ae9c
commit
f6c26d6690
@ -57,16 +57,9 @@ class PluginManager(deluge.pluginmanagerbase.PluginManagerBase,
|
|||||||
# Enable plugins that are enabled in the config
|
# Enable plugins that are enabled in the config
|
||||||
self.enable_plugins()
|
self.enable_plugins()
|
||||||
|
|
||||||
# Set update timer to call update() in plugins every second
|
|
||||||
self.update_timer = LoopingCall(self.update_plugins)
|
|
||||||
self.update_timer.start(1)
|
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
# Disable all enabled plugins
|
# Disable all enabled plugins
|
||||||
self.disable_plugins()
|
self.disable_plugins()
|
||||||
# Stop the update timer
|
|
||||||
if self.update_timer.running:
|
|
||||||
self.update_timer.stop()
|
|
||||||
|
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
self.stop()
|
self.stop()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user