attempt fixing disconnect

This commit is contained in:
DJ2LS 2022-12-19 21:57:57 +01:00 committed by GitHub
parent 9d26472607
commit 934bb20010
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1659,7 +1659,7 @@ class DATA:
# Close the session if the CRC matches the remote station in static.
_valid_crc, mycallsign = helpers.check_callsign(self.mycallsign, bytes(data_in[2:5]))
_valid_session = helpers.check_session_id(self.session_id, bytes(data_in[1:2]))
if (_valid_crc or _valid_session) and static.ARQ_SESSION_STATE in ["disconnected"]:
if (_valid_crc or _valid_session) and static.ARQ_SESSION_STATE not in ["disconnected"]:
static.ARQ_SESSION_STATE = "disconnected"
helpers.add_to_heard_stations(
static.DXCALLSIGN,