aqhome-nodes: write db on fini(). Extract info from DEVICE message.
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
|
||||
|
||||
#include "./fini.h"
|
||||
#include "./db.h"
|
||||
#include "./aqhomed_p.h"
|
||||
|
||||
#include <gwenhywfar/gwenhywfar.h>
|
||||
@@ -61,6 +62,8 @@ void AqHomed_Fini(AQHOMED *aqh)
|
||||
aqh->ipcdEndpoint=NULL;
|
||||
aqh->brokerEndpoint=NULL;
|
||||
|
||||
AqHomed_WriteNodeDb(aqh);
|
||||
|
||||
if (aqh->pidFile)
|
||||
remove(aqh->pidFile);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user