This commit is contained in:
flaskfarm
2022-10-12 21:47:10 +09:00
parent 565d859c98
commit 9814f49ec7
3 changed files with 6 additions and 4 deletions

View File

@@ -18,4 +18,5 @@ discord-webhook
pyyaml
telepot-mod
Flask-Dropzone
pycryptodome
psutil

View File

@@ -1,6 +1,6 @@
psutil
gevent
gevent-websocket
celery
redis
pycryptodome

View File

@@ -485,7 +485,8 @@ class Framework:
SupportSubprocess.all_process_close()
from .init_plugin import PluginManager
PluginManager.plugin_unload()
self.socketio.stop()
with self.app.app_context():
self.socketio.stop()
except Exception as exception:
self.logger.error('Exception:%s', exception)
self.logger.error(traceback.format_exc())