fix issue when tcp handlers has no other clients for a session

This commit is contained in:
Blake Harnden 2020-04-20 15:56:25 -07:00
parent b4de016a24
commit efa5506c80

View file

@ -2062,7 +2062,7 @@ class CoreUdpHandler(CoreHandler):
if not isinstance(message, (coreapi.CoreNodeMessage, coreapi.CoreLinkMessage)): if not isinstance(message, (coreapi.CoreNodeMessage, coreapi.CoreLinkMessage)):
return return
clients = self.tcp_handler.session_clients[self.session.id] clients = self.tcp_handler.session_clients.get(self.session.id, [])
for client in clients: for client in clients:
try: try:
client.sendall(message.raw_message) client.sendall(message.raw_message)