From b569c6fa1ad8f3cf1b530372072bec12a3eb1330 Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Thu, 16 Apr 2020 16:39:11 +0200 Subject: [PATCH] Fix logic error causing people to be brought on too early --- stateserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stateserver.py b/stateserver.py index 5423d0c..13fdb45 100755 --- a/stateserver.py +++ b/stateserver.py @@ -287,7 +287,7 @@ def post_registerCheck() -> Any: } if "wsid" in content: connection["wsid"] = content["wsid"] - if start_time > now_time + datetime.timedelta(minutes=2): + if start_time + datetime.timedelta(minutes=2) < now_time: # they're late, bring them live now print("({}, {}) late, bringing on air now".format(connection["connid"], connection["wsid"])) do_ws_srv_telnet(connection["wsid"])