summaryrefslogtreecommitdiffstats
path: root/web/server
diff options
context:
space:
mode:
authorMarkos Fountoulakis <44345837+mfundul@users.noreply.github.com>2019-02-21 19:45:57 +0200
committerChris Akritidis <43294513+cakrit@users.noreply.github.com>2019-02-21 18:45:57 +0100
commit02fb32a120f73e36d995eef735759b42ec3df6f3 (patch)
tree3961449966a630be1611677c2a8f132b67f8acb8 /web/server
parentf40bf4ec77703098f08613642e6ac95470e12b2c (diff)
Fix timer crash during exit (#5464)
Diffstat (limited to 'web/server')
-rw-r--r--web/server/static/static-threaded.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/server/static/static-threaded.c b/web/server/static/static-threaded.c
index 56e726ba17..1945b8a3e3 100644
--- a/web/server/static/static-threaded.c
+++ b/web/server/static/static-threaded.c
@@ -264,6 +264,8 @@ static void web_server_tmr_callback(void *timer_data) {
static __thread RRDSET *st = NULL;
static __thread RRDDIM *rd_user = NULL, *rd_system = NULL;
+ if(unlikely(netdata_exit)) return;
+
if(unlikely(!st)) {
char id[100 + 1];
char title[100 + 1];