Fix dipatching of messages. Paired w/ enus.linden
This commit is contained in:
committed by
Salad Dais
parent
70c9d342c4
commit
e9e91d16b1
@@ -155,8 +155,10 @@ class UDPDispatcher(object):
|
||||
if host.is_ok() == False:
|
||||
return
|
||||
|
||||
packet = Message(message.name)
|
||||
packet.blocks = message.blocks
|
||||
if isinstance(message,Message):
|
||||
packet = message
|
||||
else:
|
||||
packet = message()
|
||||
|
||||
# enable monitoring of outgoing packets
|
||||
if self.settings.HANDLE_PACKETS:
|
||||
|
||||
@@ -10,7 +10,7 @@ from pyogp.lib.base.datatypes import UUID
|
||||
from pyogp.lib.base.exc import *
|
||||
|
||||
# pyogp messaging
|
||||
#from pyogp.lib.base.message.packets import *
|
||||
from pyogp.lib.base.message.packets import *
|
||||
from pyogp.lib.base.message.message_handler import MessageHandler
|
||||
|
||||
# utilities
|
||||
|
||||
Reference in New Issue
Block a user