This commit is contained in:
yumoqing 2021-01-23 17:16:19 +08:00
parent 15b60050f8
commit 3ece881c60

View File

@ -41,10 +41,7 @@ class OSCServer(EventDispatcher):
def apihandle(self, api, *args):
data = json.loads(args[0])
sock, ip_address, response_port = self.osc_server.get_sender()
self.dispatch(api,
{'address':address,
'data':data
})
self.dispatch('on_%s' % api, api, data)
if api == 'broadcast':
return
if not address in self.clients: