Improved play all function for slow connections

This commit is contained in:
Manuel Cortez 2016-07-10 22:59:59 -05:00
parent 6228e7229b
commit ed29923d2e

View File

@ -81,7 +81,7 @@ class audioPlayer(object):
self.worker.start() self.worker.start()
def player_function(self): 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: if len(self.queue) == 0:
self.worker.cancel() self.worker.cancel()
return return