aqhome-nodes: don't directly delete endpoint when connection goes down.

object should only be deleted outside the loop!
This commit is contained in:
Martin Preuss
2025-03-01 16:57:00 +01:00
parent b413b172e5
commit 8b22e7d22a
2 changed files with 41 additions and 11 deletions

View File

@@ -153,7 +153,7 @@ void _runService(AQH_OBJECT *aqh, AQH_EVENT_LOOP *eventLoop)
}
if (_diffInSeconds(now, timeLastConnCheck)>CONNCHECK_INTERVAL_IN_SECS) {
DBG_ERROR(NULL, "Write time");
DBG_ERROR(NULL, "Check connections");
AQH_NodeServer_CheckBrokerConnection(aqh);
AQH_NodeServer_CheckTtyConnection(aqh);
timeLastConnCheck=now;