fixed a typo in last commit

This commit is contained in:
Manuel Cortez 2019-04-23 11:31:49 -05:00
parent eec5350926
commit 0edbba5625
2 changed files with 4 additions and 2 deletions

View File

@ -20,6 +20,8 @@
* All spelling dictionaries are included by default for the following languages: Russian, English, German, French, italian, Polish, spanish and Turkish. Before, some dictionaries were missing and the spelling checker was failing.
* Fixed an error in the default configuration template used for new sessions in the application. This error was making Socializer to fail when loading any conversation buffer.
* Fixed an error in the algorithm to detect friends disconnecting from VK. This problem was interrupting the connection with the chat server every time it was happening, thus chat server's connection should be more reliable now.
* The audio player should behave better in situations where a song is interrupted. Before, if you pressed "next song" while the currently playing sound was interrupted due to internet connection issues, two or more songs were played at the same time.
* The bug reporting feature works normally again.
### Changes

View File

@ -63,7 +63,7 @@ class audioPlayer(object):
if "url" in object and object["url"] =="":
pub.sendMessage("notify", message=_("This file could not be played because it is not allowed in your country"))
return
if self.stream != None and (self.stream.is_playing == True or self.stream.is_stayed == True):
if self.stream != None and (self.stream.is_playing == True or self.stream.is_stalled == True):
try:
self.stream.stop()
except BassError:
@ -196,7 +196,7 @@ class audioPlayer(object):
""" check if the player is already playing a stream. """
if self.stream == None:
return False
if self.stream != None and self.stream.is_playing == False and self.stream.is_stayed == False:
if self.stream != None and self.stream.is_playing == False and self.stream.is_stalled == False:
return False
else:
return True