From c9510fbdf581c85cbc8eb9efa05817df02c6ae08 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 29 Jul 2020 22:58:28 +0800 Subject: [PATCH] bugfix --- kivyblocks/vplayer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kivyblocks/vplayer.py b/kivyblocks/vplayer.py index 7ae2ef5..bd6bf48 100644 --- a/kivyblocks/vplayer.py +++ b/kivyblocks/vplayer.py @@ -249,7 +249,7 @@ class OSC_VPlayer(BaseVPlayer): self.map('/replay',self.replay) self.map('/next',self.next) self.map('/previous',self.previous) - t = threading.Thread(target=self.server.serve_forever()) + t = threading.Thread(target=self.server.serve_forever) t.start() self.fullscreen = True label = Label(text='%s %d' % (self.ip,self.port), font_size=CSize(2)) @@ -258,7 +258,7 @@ class OSC_VPlayer(BaseVPlayer): self.add_widget(label) def __del__(self): - self.server.stop() + self.server.server_close() def map(self,p,f): self.dispatcher.map(p,f,None)