Fix logic error causing people to be brought on too early

This commit is contained in:
Marks Polakovs 2020-04-16 16:39:11 +02:00
parent 3f737c2328
commit b569c6fa1a

View file

@ -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"])