From c32ef4ee1e742d14161b348d62f2c674a1a289e6 Mon Sep 17 00:00:00 2001 From: g8bpq Date: Sun, 5 Feb 2023 11:01:05 +0000 Subject: 6.0.23.46 --- CommonCode.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'CommonCode.c') diff --git a/CommonCode.c b/CommonCode.c index c2f6e75..2abf722 100644 --- a/CommonCode.c +++ b/CommonCode.c @@ -728,7 +728,7 @@ VOID CheckForDetach(struct TNCINFO * TNC, int Stream, struct STREAMINFO * STREAM // Create a traffic record - if (STREAM->Connected) + if (STREAM->Connected && STREAM->ConnectTime) { Duration = time(NULL) - STREAM->ConnectTime; @@ -741,6 +741,8 @@ VOID CheckForDetach(struct TNCINFO * TNC, int Stream, struct STREAMINFO * STREAM STREAM->BytesRXed, (int)(STREAM->BytesRXed/Duration), (int)Duration); Debugprintf(logmsg); + + STREAM->ConnectTime = 0; } if (STREAM->BPQtoPACTOR_Q) // Still data to send? @@ -897,7 +899,9 @@ BOOL ProcessIncommingConnectEx(struct TNCINFO * TNC, char * Call, int Stream, BO PMSGWITHLEN buffptr; int Totallen = 0; UCHAR * ptr; - struct PORTCONTROL * PORT = &TNC->PortRecord->PORTCONTROL; + struct PORTCONTROL * PORT; + + PORT = &TNC->PortRecord->PORTCONTROL; // Stop Scanner @@ -908,6 +912,7 @@ BOOL ProcessIncommingConnectEx(struct TNCINFO * TNC, char * Call, int Stream, BO sprintf(Msg, "%d SCANSTOP", TNC->Port); Rig_Command(-1, Msg); + UpdateMH(TNC, Call, '+', 'I'); } @@ -967,7 +972,7 @@ BOOL ProcessIncommingConnectEx(struct TNCINFO * TNC, char * Call, int Stream, BO return TRUE; // if Port CTEXT defined, use it - + if (PORT->CTEXT) { Totallen = strlen(PORT->CTEXT); -- cgit v1.2.3