Raise an alert if an authorize() hook fails

This commit is contained in:
Martin Willi
2012-12-19 10:40:33 +01:00
parent 45d6134218
commit c57fe7ac6f
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -720,6 +720,10 @@ METHOD(bus_t, authorize, bool,
}
enumerator->destroy(enumerator);
this->mutex->unlock(this->mutex);
if (!success)
{
alert(this, ALERT_AUTHORIZATION_FAILED);
}
return success;
}