attempt to correct udp handler

This commit is contained in:
Blake J. Harnden 2018-03-16 11:46:05 -07:00
parent 4e5ee1b3ee
commit 02bcdf617d

View file

@ -1643,7 +1643,6 @@ class CoreDatagramRequestHandler(CoreRequestHandler):
session = self.server.mainserver.get_session(session_id=session_id)
if session:
self.session = session
session.broadcast(self, message)
self.handle_message(message)
else:
logger.warn("Session %d in %s message not found." % (session_id, message.type_str()))
@ -1652,8 +1651,6 @@ class CoreDatagramRequestHandler(CoreRequestHandler):
session = self.server.mainserver.get_session()
if session or message.message_type == MessageTypes.REGISTER.value:
self.session = session
if session:
session.broadcast(self, message)
self.handle_message(message)
else:
logger.warn("No active session, dropping %s message.", message.type_str())