Fix some type errors and remove an unneeded call to onCreateEvent
This commit is contained in:
parent
e7b1ab54df
commit
8610f48afd
|
@ -499,7 +499,7 @@ void ImageAnalyser::cleanupPlugins()
|
|||
|
||||
if ( mysql_query( &dbconn, sql ) )
|
||||
{
|
||||
Error( "Can't delete plugint: %s", mysql_error( &dbconn ) );
|
||||
Error( "Can't delete plugin: %s", mysql_error( &dbconn ) );
|
||||
exit( mysql_errno( &dbconn ) );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1520,10 +1520,7 @@ bool Monitor::Analyse()
|
|||
// Create event
|
||||
event = new Event( this, *timestamp, "Continuous", noteSetMap );
|
||||
shared_data->last_event = event->Id();
|
||||
#if ZM_PLUGINS_ON
|
||||
if (config.load_plugins)
|
||||
ThePluginManager.getImageAnalyser().onCreateEvent( zones, event );
|
||||
#endif // ZM_PLUGINS_ON
|
||||
|
||||
Info( "%s: %03d - Opening new event %d, section start", name, image_count, event->Id() );
|
||||
|
||||
/* To prevent cancelling out an existing alert\prealarm\alarm state */
|
||||
|
|
Loading…
Reference in New Issue