From 3255979ca15ddf30f4281f2488e906e141e3de7f Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Thu, 12 Mar 2015 14:45:39 +0200 Subject: [PATCH] Fixed monitor handle not being NULL on initialization. --- server/core/monitor.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/core/monitor.c b/server/core/monitor.c index ed46978ac..a8401e6bb 100644 --- a/server/core/monitor.c +++ b/server/core/monitor.c @@ -78,11 +78,9 @@ MONITOR *mon; free(mon); return NULL; } -/* - mon->handle = (*mon->module->startMonitor)(NULL); - mon->state = MONITOR_STATE_RUNNING; -*/ + mon->handle = NULL; + spinlock_acquire(&monLock); mon->next = allMonitors; allMonitors = mon;