Fix timer crash during exit (#5464)
Markos Fountoulakis committed
Feb 21, 2019 at 19:45 UTC
02fb32a120f73e36d995eef735759b42ec3df6f3
1 file changed
+2
web/server/static/static-threaded.c
+2
@@ -264,6 +264,8 @@ static void web_server_tmr_callback(void *timer_data) {
264
static __thread RRDSET *st = NULL;
265
static __thread RRDDIM *rd_user = NULL, *rd_system = NULL;
266
267
+ if(unlikely(netdata_exit)) return;
268
+
269
if(unlikely(!st)) {
270
char id[100 + 1];
271
char title[100 + 1];