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:
self.stream.stop()
self.stopped = True
if hasattr(self, "worker") and self.worker != None:
self.worker.cancel()
self.worker = None
self.queue = []
if hasattr(self, "worker") and self.worker != None:
self.worker.cancel()
self.worker = None
self.queue = []
# Make sure that there are no other sounds trying to be played.
if self.is_working == False:
self.is_working = True