From dfa2310f06f3e553463786ef52c02d00935cb57e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 31 May 2019 12:31:51 +0200 Subject: [PATCH] Possibly fix /playmode bug (#51) --- royalnet/audio/playmodes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/royalnet/audio/playmodes.py b/royalnet/audio/playmodes.py index 7b8d59c3..185bf4c7 100644 --- a/royalnet/audio/playmodes.py +++ b/royalnet/audio/playmodes.py @@ -80,9 +80,10 @@ class Playlist(PlayMode): self.list.append(item) def delete(self) -> None: + if self.now_playing is not None: + self.now_playing.delete() while self.list: self.list.pop(0).delete() - self.now_playing.delete() class Pool(PlayMode):