Re-registers no longer double connections.
This commit is contained in:
parent
09c1ff2492
commit
e450c2cdb0
1 changed files with 6 additions and 1 deletions
|
@ -275,7 +275,11 @@ def post_registerCheck() -> Any:
|
|||
print("found existing connection {} for {}".format(conn["connid"], conn["timeslotid"]))
|
||||
connection = conn
|
||||
|
||||
new_connection = False
|
||||
if connection is None:
|
||||
|
||||
new_connection = True
|
||||
|
||||
if start_time - now_time > datetime.timedelta(hours=1):
|
||||
return genFail("This show too far away, please try again within an hour of starting your show.")
|
||||
|
||||
|
@ -305,7 +309,8 @@ def post_registerCheck() -> Any:
|
|||
subprocess.Popen(['sel', '5'])
|
||||
|
||||
assert connection is not None
|
||||
connections.append(connection)
|
||||
if new_connection:
|
||||
connections.append(connection)
|
||||
print(connections)
|
||||
|
||||
return genPayload(connection)
|
||||
|
|
Loading…
Reference in a new issue