From ed29923d2ef483f14d4038676ce6533af10d3b11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Sun, 10 Jul 2016 22:59:59 -0500 Subject: [PATCH] Improved play all function for slow connections --- src/controller/player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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