Reconnecting streams every 5 mins

This commit is contained in:
2015-08-12 16:43:23 -05:00
parent 704ade560a
commit 34ad0c5e47
2 changed files with 3 additions and 2 deletions

View File

@@ -125,7 +125,7 @@ class Controller(object):
log.debug("Binding other application events...")
pub.subscribe(self.logout_account, "logout")
pub.subscribe(self.login_account, "login")
pub.subscribe(self.manage_stream_errors, "stream-error")
pub.subscribe(self.manage_stream_errors, "streamError")
pub.subscribe(self.create_new_buffer, "create-new-buffer")
pub.subscribe(self.restart_streams, "restart-streams")
@@ -1204,7 +1204,7 @@ class Controller(object):
session.start_streaming()
def manage_stream_errors(self, session):
log.error("An error ocurred with the stream for the %s session. It will be destroyed" % (session,))
log.debug(" Restarting %s session streams. It will be destroyed" % (session,))
s = session_.sessions[session]
for i in self.buffers:
if i.invisible == True and i.session.session_id == s.session_id: