fix issue when tcp handlers has no other clients for a session
This commit is contained in:
parent
b4de016a24
commit
efa5506c80
1 changed files with 1 additions and 1 deletions
|
@ -2062,7 +2062,7 @@ class CoreUdpHandler(CoreHandler):
|
|||
if not isinstance(message, (coreapi.CoreNodeMessage, coreapi.CoreLinkMessage)):
|
||||
return
|
||||
|
||||
clients = self.tcp_handler.session_clients[self.session.id]
|
||||
clients = self.tcp_handler.session_clients.get(self.session.id, [])
|
||||
for client in clients:
|
||||
try:
|
||||
client.sendall(message.raw_message)
|
||||
|
|
Loading…
Reference in a new issue