Fixed monitor handle not being NULL on initialization.
This commit is contained in:
parent
04b969efaa
commit
3255979ca1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user