Removed send errors in some functions

This commit is contained in:
2015-10-14 20:38:42 -05:00
parent 792655e299
commit 44e8ed6456
3 changed files with 12 additions and 9 deletions

View File

@@ -1247,10 +1247,13 @@ class Controller(object):
def manage_stream_errors(self, session):
log.error(" Restarting %s session streams. It will be destroyed" % (session,))
s = session_.sessions[session]
del s.main_stream
del s.timelinesStream
s.counter = 0
s.reconnection_function_active = False
try:
if hasattr(s, "main_stream"): del s.main_stream
del s.timelinesStream
s.counter = 0
s.reconnection_function_active = False
except AttributeError:
log.error("Error deleting some thing")
for i in self.buffers:
if i.invisible == True and i.session.session_id == s.session_id and i.type != "people":
i.start_stream()