From 24efda4487926fe7135b9cce902679d7ffb30666 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 10 Jan 2020 09:53:56 +0800 Subject: [PATCH] bugfix --- kivyblocks/vplayer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kivyblocks/vplayer.py b/kivyblocks/vplayer.py index a857c4c..6eeec24 100644 --- a/kivyblocks/vplayer.py +++ b/kivyblocks/vplayer.py @@ -94,10 +94,10 @@ class VPlayer(FloatLayout): def __del__(self): print('********** delete VPlayer instance ********') - self._video.state = 'stop' if self.update_task: self.update_task.cancel() self.update_task = None + self._video.state = 'stop' Window.allow_screensaver = True del self._video self._video = None