summaryrefslogtreecommitdiff
path: root/UIARQ.c
diff options
context:
space:
mode:
Diffstat (limited to 'UIARQ.c')
-rw-r--r--UIARQ.c30
1 files changed, 16 insertions, 14 deletions
diff --git a/UIARQ.c b/UIARQ.c
index dca1431..02549d3 100644
--- a/UIARQ.c
+++ b/UIARQ.c
@@ -158,6 +158,17 @@ static int ExtProc(int fn, int port,unsigned char * buff)
TidyClose(TNC, Stream);
}
}
+
+ if (STREAM->PACTORtoBPQ_Q == 0)
+ {
+ if (STREAM->DiscWhenAllSent)
+ {
+ STREAM->DiscWhenAllSent--;
+ if (STREAM->DiscWhenAllSent == 0)
+ STREAM->ReportDISC = TRUE; // Dont want to leave session attached. Causes too much confusion
+ }
+ }
+
}
ARQTimer(TNC);
@@ -183,16 +194,7 @@ static int ExtProc(int fn, int port,unsigned char * buff)
return -1;
}
- if (STREAM->PACTORtoBPQ_Q == 0)
- {
- if (STREAM->DiscWhenAllSent)
- {
- STREAM->DiscWhenAllSent--;
- if (STREAM->DiscWhenAllSent == 0)
- STREAM->ReportDISC = TRUE; // Dont want to leave session attached. Causes too much confusion
- }
- }
- else
+ if (STREAM->PACTORtoBPQ_Q)
{
int datalen;
@@ -387,7 +389,7 @@ static VOID UpdateStatsLine(struct TNCINFO * TNC, struct STREAMINFO * STREAM)
static int WebProc(struct TNCINFO * TNC, char * Buff, BOOL LOCAL)
{
- int Len = sprintf(Buff, "<html><meta http-equiv=expires content=0><meta http-equiv=refresh content=15>"
+ int Len = sprintf(Buff, "<html><meta http-equiv=expires content=0>"
"<script type=\"text/javascript\">\r\n"
"function ScrollOutput()\r\n"
"{var textarea = document.getElementById('textarea');"
@@ -421,7 +423,7 @@ UINT UIARQExtInit(EXTPORTDATA * PortEntry)
struct PORTCONTROL * PORT;
struct STREAMINFO * STREAM;
- srand((unsigned int)time(NULL));
+ srand((unsigned int)NOW);
port = PortEntry->PORTCONTROL.PORTNUMBER;
@@ -853,7 +855,7 @@ static VOID ProcessFLDigiData(struct TNCINFO * TNC, UCHAR * Input, int Len, int
SESS = TNC->PortRecord->ATTACHEDSESSIONS[Stream];
strcpy(STREAM->MyCall, call2);
- STREAM->ConnectTime = time(NULL);
+ STREAM->ConnectTime = NOW;
STREAM->bytesRXed = STREAM->bytesTXed = STREAM->BytesAcked = STREAM->BytesResent = 0;
if (WL2K)
@@ -1005,7 +1007,7 @@ AckConnectRequest:
if (STREAM->Connected)
goto SendKReply; // Repeated ACK
- STREAM->ConnectTime = time(NULL);
+ STREAM->ConnectTime = NOW;
STREAM->bytesRXed = STREAM->bytesTXed = STREAM->BytesAcked = STREAM->BytesResent = 0;
STREAM->Connected = TRUE;