This commit is contained in:
yumoqing 2020-01-10 09:53:56 +08:00
parent 5d9e86e38a
commit 24efda4487

View File

@ -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