vici: Properly skip raise_event() for unknown event names
This commit is contained in:
@@ -437,7 +437,6 @@ METHOD(vici_dispatcher_t, raise_event, void,
|
||||
if (event)
|
||||
{
|
||||
event->uses++;
|
||||
}
|
||||
this->mutex->unlock(this->mutex);
|
||||
|
||||
enumerator = array_create_enumerator(event->clients);
|
||||
@@ -455,6 +454,7 @@ METHOD(vici_dispatcher_t, raise_event, void,
|
||||
{
|
||||
this->cond->broadcast(this->cond);
|
||||
}
|
||||
}
|
||||
this->mutex->unlock(this->mutex);
|
||||
|
||||
message->destroy(message);
|
||||
|
||||
Reference in New Issue
Block a user