From 3ece881c607920a8fec24e1bd3ef42083a473c6b Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 23 Jan 2021 17:16:19 +0800 Subject: [PATCH] bugfix --- kivyblocks/osc_server.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kivyblocks/osc_server.py b/kivyblocks/osc_server.py index 1603339..85fba20 100644 --- a/kivyblocks/osc_server.py +++ b/kivyblocks/osc_server.py @@ -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: