mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-17 14:01:03 +01:00
control: don't spew "Stopping plugins" notices if none are loaded
This commit is contained in:
parent
3b6c1e56c4
commit
d818c17072
@ -36,6 +36,10 @@ def _remove_pid():
|
||||
log.debug('Not removing PID file %s as world._should_remove_pid is False.' % pidfile)
|
||||
|
||||
def _kill_plugins(irc=None):
|
||||
if not world.plugins:
|
||||
# No plugins were loaded or we were in a pre-initialized state, ignore.
|
||||
return
|
||||
|
||||
log.info("Shutting down plugins.")
|
||||
for name, plugin in world.plugins.items():
|
||||
# Before closing connections, tell all plugins to shutdown cleanly first.
|
||||
|
Loading…
x
Reference in New Issue
Block a user