diff --git a/src/controller/player.py b/src/controller/player.py index c2a575f..9b4f8b0 100644 --- a/src/controller/player.py +++ b/src/controller/player.py @@ -81,7 +81,7 @@ class audioPlayer(object): self.worker.start() def player_function(self): - if self.stream != None and self.stream.is_playing == False and self.stopped == False: + if self.stream != None and self.stream.is_playing == False and self.stopped == False and len(self.stream) == self.stream.position: if len(self.queue) == 0: self.worker.cancel() return