From 9296abdadec1c46f897b3c601e5be874fb0783d1 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 10 Jan 2020 10:02:09 +0800 Subject: [PATCH] bugfix --- kivyblocks/vplayer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kivyblocks/vplayer.py b/kivyblocks/vplayer.py index 6eeec24..41cb295 100644 --- a/kivyblocks/vplayer.py +++ b/kivyblocks/vplayer.py @@ -94,6 +94,8 @@ class VPlayer(FloatLayout): def __del__(self): print('********** delete VPlayer instance ********') + if self._video is None: + return if self.update_task: self.update_task.cancel() self.update_task = None