Don't crash the server if there's no devices

Big ninny just crashed because there's no fingerprint readers. Hoo,
hoo. My eyes are bleeding.
This commit is contained in:
Bastien Nocera
2008-11-24 12:50:34 +00:00
committed by Daniel Drake
parent 9743d9d2a0
commit 1abf51afa4
3 changed files with 3 additions and 26 deletions

View File

@ -346,12 +346,6 @@ int main(int argc, char **argv)
/* create the one instance of the Manager object to be shared between
* all fprintd users */
manager = fprint_manager_new(no_timeout);
error = fprint_manager_get_error (manager);
if (error != NULL) {
g_error("Couldn't create manager object: %s", error->message);
g_error_free (error);
return 1;
}
driver_proxy = dbus_g_proxy_new_for_name(fprintd_dbus_conn,
DBUS_SERVICE_DBUS, DBUS_PATH_DBUS, DBUS_INTERFACE_DBUS);