improve more handling of errors when starting server
+ add shutdown method to server (and dispatcher)
This commit is contained in:
@ -82,6 +82,7 @@ class Dispatcher:
|
||||
self._subscriptions = {}
|
||||
self._lock = threading.RLock()
|
||||
self.restart = srv.restart
|
||||
self.shutdown = srv.shutdown
|
||||
|
||||
def broadcast_event(self, msg, reallyall=False):
|
||||
"""broadcasts a msg to all active connections
|
||||
|
Reference in New Issue
Block a user