Skip to content
Snippets Groups Projects
Commit 6ac9ca57 authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Fix bug where protected streams where not activated uppon addition

parent f47d9d0a
No related branches found
No related tags found
No related merge requests found
......@@ -313,14 +313,14 @@ class StreamList():
if existing_stream.key == stream.key:
if existing_stream.is_valid_password(stream.password):
if existing_stream.protected:
stream = stream.set_protected(True)
stream = stream.set_protected(True).activate()
p = str_if_true(existing_stream.protected, "(protected) ")
existing_stream = stream
self.logger.info("Replaced existing {}stream {} because a valid password was supplied".format(p, stream))
return True
elif existing_stream.protected:
if existing_stream.password is None:
existing_stream = stream.set_protected(True)
existing_stream = stream.set_protected(True).activate()
self.logger.info("Replaced existing (protected) stream {}, because the protected stream has no password set".format(stream))
return True
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment