Fixed stopped monitors getting a call to monitorStop.

This commit is contained in:
Markus Makela 2015-02-17 21:47:11 +02:00
parent 241e4a3175
commit ce063caf56

View File

@ -139,9 +139,12 @@ monitorStart(MONITOR *monitor)
void
monitorStop(MONITOR *monitor)
{
if(monitor->state != MONITOR_STATE_STOPPED)
{
monitor->state = MONITOR_STATE_STOPPING;
monitor->module->stopMonitor(monitor->handle);
monitor->state = MONITOR_STATE_STOPPED;
}
}
/**