Fixed monitor handle not being NULL on initialization.

This commit is contained in:
Markus Makela 2015-03-12 14:45:39 +02:00
parent 04b969efaa
commit 3255979ca1

View File

@ -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;