do not reload whe currently loading

This commit is contained in:
Matthias 2021-11-22 01:28:36 +01:00
parent d54bbf562b
commit 3920108d83
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -121,6 +121,10 @@ class Plugins:
def reload_plugins(self):
"""safely reload IntegrationPlugins"""
# do not reload whe currently loading
if self.is_loading:
return
logger.info('Start reloading plugins')
with maintenance_mode_on():
self.unload_plugins()