summaryrefslogtreecommitdiff
path: root/cMain.c
diff options
context:
space:
mode:
authorJohn Wiseman <john.wiseman@cantab.net>2023-07-29 07:23:11 +0100
committerJohn Wiseman <john.wiseman@cantab.net>2023-07-29 07:23:11 +0100
commitb77dbd8ce169fc6e575b3f471150b14832e6e991 (patch)
tree80ccc19fcc05db23d0a73938c14647ba629822af /cMain.c
parented81fc5267a230d12a2519e61707025087ec6234 (diff)
6.0.23.8123.82
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);
}