Don't set to none the queue in player if it's not needed

This commit is contained in:
Manuel Cortez 2016-03-25 11:06:02 -06:00
parent 1781535521
commit 32c1ce85da

View File

@ -26,10 +26,10 @@ class audioPlayer(object):
if self.stream != None and self.stream.is_playing == True: if self.stream != None and self.stream.is_playing == True:
self.stream.stop() self.stream.stop()
self.stopped = True self.stopped = True
if hasattr(self, "worker") and self.worker != None: if hasattr(self, "worker") and self.worker != None:
self.worker.cancel() self.worker.cancel()
self.worker = None self.worker = None
self.queue = [] self.queue = []
# Make sure that there are no other sounds trying to be played. # Make sure that there are no other sounds trying to be played.
if self.is_working == False: if self.is_working == False:
self.is_working = True self.is_working = True