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;