bug fixes

This commit is contained in:
DJ2LS 2024-01-17 11:06:33 +01:00
parent 6bc3564a5e
commit 4562f173d3
2 changed files with 5 additions and 7 deletions

View file

@ -32,7 +32,7 @@ class FrameHandler():
call_with_ssid = self.config['STATION']['mycall'] + "-" + str(self.config['STATION']['myssid'])
ft = self.details['frame']['frame_type']
print(self.details)
valid = False
# Check for callsign checksum
if ft in ['ARQ_SESSION_OPEN', 'ARQ_SESSION_OPEN_ACK', 'PING', 'PING_ACK']:
valid, mycallsign = helpers.check_callsign(
@ -59,8 +59,6 @@ class FrameHandler():
return valid
def should_respond(self):
return self.is_frame_for_me()

View file

@ -118,7 +118,6 @@ class StateManager:
self.arq_irs_sessions[session.id] = session
return True
def check_if_running_arq_session(self, irs=False):
sessions = self.arq_irs_sessions if irs else self.arq_iss_sessions
@ -130,11 +129,12 @@ class StateManager:
self.remove_arq_irs_session(session_id)
else:
self.remove_arq_iss_session(session_id)
# check if ongoing sessions available
if sessions[session_id].state.name not in ['ENDED', 'ABORTED', 'FAILED']:
# check again if session id exists in session because of cleanup
if session_id in sessions and sessions[session_id].state.name not in ['ENDED', 'ABORTED', 'FAILED']:
print(f"[State Manager] running session...[{session_id}]")
return True
return False
return False
def get_arq_iss_session(self, id):