feat: moving CallbackManager to new file, moving emit_notification to CallbackManager

This commit is contained in:
Mose Müller
2023-08-02 12:06:22 +02:00
parent 2632e7ba6e
commit bcc846f70d
6 changed files with 422 additions and 400 deletions

View File

@ -162,7 +162,7 @@ class Server:
self._loop.create_task(notify())
self._service.add_notification_callback(sio_callback)
self._service._callback_manager.add_notification_callback(sio_callback)
# overwrite uvicorn's signal handlers, otherwise it will bogart SIGINT and
# SIGTERM, which makes it impossible to escape out of