Improved play all function for slow connections
This commit is contained in:
parent
6228e7229b
commit
ed29923d2e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user