diff options
| author | 2012-01-06 17:54:53 +0100 | |
|---|---|---|
| committer | 2012-01-06 17:54:53 +0100 | |
| commit | b877847094b0ba03a098dff0fd769eb456b48dd1 (patch) | |
| tree | 2d4a4e6b5c4dcba8eec952724a0dd065ef781ced /pyLoadCore.py | |
| parent | xmpp: disconnect on unload / deactivate (diff) | |
| download | pyload-b877847094b0ba03a098dff0fd769eb456b48dd1.tar.xz | |
Diffstat (limited to 'pyLoadCore.py')
| -rwxr-xr-x | pyLoadCore.py | 8 | 
1 files changed, 6 insertions, 2 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index f8b1ad6e8..54dc9ca39 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -439,9 +439,10 @@ class Core(object):          self.running = True          self.log.info(_("Activating Plugins...")) -        self.hookManager.coreReady() +        self.hookManager.activateHooks()          self.log.info(_("pyLoad is up and running")) +        self.eventManager.dispatchEvent("coreReady")          #test api  #        from module.common.APIExerciser import startApiExerciser @@ -550,10 +551,13 @@ class Core(object):      def shutdown(self):          self.log.info(_("shutting down...")) +        self.eventManager.dispatchEvent("coreShutdown")          try:              if self.config['webinterface']['activated'] and hasattr(self, "webserver"):                  self.webserver.quit() + +              for thread in self.threadManager.threads:                  thread.put("quit")              pyfiles = self.files.cache.values() @@ -561,7 +565,7 @@ class Core(object):              for pyfile in pyfiles:                  pyfile.abortDownload() -            self.hookManager.coreExiting() +            self.hookManager.deactivateHooks()          except:              if self.debug:  | 
