diff options
| author | g8bpq <john.wiseman@cantab.net> | 2023-02-05 11:01:05 +0000 |
|---|---|---|
| committer | g8bpq <john.wiseman@cantab.net> | 2023-02-05 11:01:05 +0000 |
| commit | c32ef4ee1e742d14161b348d62f2c674a1a289e6 (patch) | |
| tree | 2b8c9ec4840b5965a3a6d70614d5d4ea21967ff1 /CommonCode.c | |
| parent | c15de2c7f7e70c97a89b591b3ece72c5047ab4fa (diff) | |
6.0.23.4623.51
Diffstat (limited to 'CommonCode.c')
| -rw-r--r-- | CommonCode.c | 11 |
1 files changed, 8 insertions, 3 deletions
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);
|
