Some list improvements

This commit is contained in:
2015-11-27 09:17:14 -06:00
parent 45f663a462
commit b4eb11a6de
2 changed files with 4 additions and 3 deletions

View File

@@ -369,8 +369,9 @@ class Session(object):
def remove_stream(self, stream):
if stream == "timelinesStream":
self.timelinesStream.disconnect()
del self.timelinesStream
if hasattr(self, "timelinesStream"):
self.timelinesStream.disconnect()
del self.timelinesStream
else:
self.main_stream.disconnect()
del self.main_stream