summaryrefslogtreecommitdiff
path: root/cMain.c
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-08-28 20:39:34 +0100
committerDave Hibberd <d@vehibberd.com>2023-08-28 20:39:34 +0100
commit95a6ab069f03d9a60b3f0a4b3f9ed0607f6e9ad6 (patch)
treebd7950d9d1dfc1771f5f07ec21ff39d0848a49c2 /cMain.c
parent055c1c18916113a130523e71002ef2d48f0f2ace (diff)
parent084ecb74f6007abbb7e1578675964ac9352ef822 (diff)
Merge branch 'upstream/latest' into debian/latest
Diffstat (limited to 'cMain.c')
-rw-r--r--cMain.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/cMain.c b/cMain.c
index e6c1d88..9acb24a 100644
--- a/cMain.c
+++ b/cMain.c
@@ -2220,8 +2220,17 @@ L2Packet:
memcpy(BBuffer, Message, Message->LENGTH);
BBuffer->PORT = toPort;
BPORT = GetPortTableEntryFromPortNum(toPort);
+
if (BPORT)
+ {
+ if (BPORT->SmartIDInterval && BPORT->SmartIDNeeded == 0)
+ {
+ // Using Smart ID, but none scheduled
+
+ BPORT->SmartIDNeeded = time(NULL) + BPORT->SmartIDInterval;
+ }
PUT_ON_PORT_Q(BPORT, BBuffer);
+ }
else
ReleaseBuffer(BBuffer);
}