From 9bea368ca41a0374d0b760d4bbb715d97b57cff6 Mon Sep 17 00:00:00 2001 From: opera-aberglund Date: Fri, 8 Nov 2024 10:21:46 +0100 Subject: [PATCH] fix: initialize lastAdvancedMonotonic --- src/lib/server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/server.c b/src/lib/server.c index 273e58a..4789af9 100644 --- a/src/lib/server.c +++ b/src/lib/server.c @@ -306,6 +306,8 @@ int nimbleServerInit(NimbleServer* self, NimbleServerSetup setup) self->transportConnections[0].transportConnectionId = (uint8_t) 0; self->transportConnections[0].isUsed = false; + self->lastAdvancedMonotonic = setup.now; + nimbleServerCircularBufferInit(&self->freeTransportConnectionList); for (size_t i = 1; i < NIMBLE_NIMBLE_SERVER_MAX_TRANSPORT_CONNECTIONS; ++i) { self->transportConnections[i].assignedParty = 0;