Make sure we update the wsID, even on an existing registrationt

This commit is contained in:
Marks Polakovs 2020-05-11 02:20:06 +02:00 committed by GitHub
parent 15a2b59637
commit aa0ceab4d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -276,6 +276,9 @@ def post_registerCheck() -> Any:
# they've already registered, return the existing session
print("found existing connection {} for {}".format(conn["connid"], conn["timeslotid"]))
connection = conn
# make sure we update their wsID
if "wsid" in content:
connection["wsid"] = content["wsid"]
new_connection = False
if connection is None: