From f39861154a911670cef952f451aa6663fef7f9c3 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 30 Apr 2020 18:22:07 +0800 Subject: [PATCH] bugfix --- kivyblocks/aplayer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kivyblocks/aplayer.py b/kivyblocks/aplayer.py index f9d65c9..5b3615b 100644 --- a/kivyblocks/aplayer.py +++ b/kivyblocks/aplayer.py @@ -24,6 +24,7 @@ class APlayer(BoxLayout): can_move=False): super().__init__(orientation='vertical') self.ap = None + self.end_flag = False def on_source(self,o,s): if self.ap: @@ -34,6 +35,7 @@ class APlayer(BoxLayout): self.play() def __del__(self): + self.end_flag=True self.stop() def stop(self):