diff options
| author | Dave Hibberd <hibby@debian.org> | 2026-09-29 21:39:24 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2026-09-29 21:39:24 +0100 |
| commit | 592e5967b8fcd79423802071319d0c646f2080df (patch) | |
| tree | 0eef3a28cfe1a939caf9d61e419a56d79b3c38e3 /kiss.c | |
| parent | 23de03a0c8bf8a564cc0442f49d050ed11e372b8 (diff) | |
New upstream version 6.0.25.41+repackupstream/6.0.25.41+repack
Diffstat (limited to 'kiss.c')
| -rw-r--r-- | kiss.c | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -1593,7 +1593,7 @@ SeeifMore: // If a response to a qtsm command display it
- if (PORT->Session && (time(NULL) - PORT->LastKISSCmdTime < 10))
+ if (PORT->Session && (NOW - PORT->LastKISSCmdTime < 10))
{
PDATAMESSAGE Buffer;
BPQVECSTRUC * VEC;
@@ -1666,7 +1666,7 @@ SeeifMore: // If a reply to a manual KISS command(Session set and time not too long ago)
// send reponse to terminal
- if (PORT->Session && (time(NULL) - PORT->LastKISSCmdTime < 10))
+ if (PORT->Session && (NOW - PORT->LastKISSCmdTime < 10))
{
PDATAMESSAGE Buffer;
BPQVECSTRUC * VEC;
@@ -2198,16 +2198,24 @@ int KISSGetTCPMessage(NPASYINFO ASY) {
// Bind Failed
- int err = WSAGetLastError();
- Consoleprintf("Bind Failed for KISS TCP port %d - error code = %d", ASY->Portvector->ListenPort, err);
+ if (ASY->Alerted == FALSE)
+ {
+ int err = WSAGetLastError();
+ Consoleprintf("Bind Failed for KISS TCP port %d - error code = %d", ASY->Portvector->ListenPort, err);
+ ASY->Alerted = TRUE;
+ }
closesocket(sock);
}
else
{
if (listen(sock, 1) < 0)
{
- int err = WSAGetLastError();
- Consoleprintf("Listen Failed for KISS TCP port %d - error code = %d", ASY->Portvector->ListenPort, err);
+ if (ASY->Alerted == FALSE)
+ {
+ int err = WSAGetLastError();
+ Consoleprintf("Listen Failed for KISS TCP port %d - error code = %d", ASY->Portvector->ListenPort, err);
+ ASY->Alerted = TRUE;
+ }
closesocket(sock);
}
else
|
