Cache com saved in data directory. Translation service restored

This commit is contained in:
2015-10-31 20:57:21 -06:00
parent af41dcfc4e
commit 6a4a3cc94e
5 changed files with 8 additions and 9 deletions

View File

@@ -531,7 +531,7 @@ class baseBufferController(bufferController):
# @_tweets_exist
def audio(self, url='', *args, **kwargs):
if hasattr(sound.URLPlayer,'stream'):
if hasattr(sound.URLPlayer,'stream') and sound.URLPlayer.stream.is_playing == True:
return sound.URLPlayer.stop_audio(delete=True)
tweet = self.get_tweet()
if tweet == None: return

View File

@@ -1249,7 +1249,11 @@ class Controller(object):
log.error(" Restarting %s session streams. It will be destroyed" % (session,))
s = session_.sessions[session]
try:
if hasattr(s, "main_stream"): del s.main_stream
if hasattr(s, "main_stream"):
self.main_stream.disconnect()
log.error("main stream disconnected")
del s.main_stream
self.timelinesStream.disconnect()
del s.timelinesStream
s.counter = 0
s.reconnection_function_active = False