mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-07-18 06:06:06 -04:00
Cache com saved in data directory. Translation service restored
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user