Fix crash when shutdown with ACLK disabled (#8725)
Lasse Bang Mikkelsen committed
Apr 17, 2020 at 15:09 UTC
96462a406253f1ea500bd530ab56203ceabb4fcd
1 file changed
+2
aclk/agent_cloud_link.c
+2
@@ -1281,6 +1281,8 @@ void *aclk_main(void *ptr)
1281
1282
if (!netdata_cloud_setting) {
1283
info("Killing ACLK thread -> cloud functionality has been disabled");
1284
+ struct netdata_static_thread *static_thread = (struct netdata_static_thread *)ptr;
1285
+ static_thread->enabled = NETDATA_MAIN_THREAD_EXITED;
1286
return NULL;
1287
}
1288