mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
Fix possible warning when timeout is enabled
We'd get a warning when the first device starts being used, but we don't use --no-timeout.
This commit is contained in:
committed by
Daniel Drake
parent
2b71776124
commit
af42ec70f3
@ -95,7 +95,7 @@ fprint_manager_in_use_notified (FprintDevice *rdev, GParamSpec *spec, FprintMana
|
||||
GSList *l;
|
||||
gboolean in_use;
|
||||
|
||||
if (priv->timeout_id > 0 || !priv->no_timeout) {
|
||||
if (priv->timeout_id > 0) {
|
||||
g_source_remove (priv->timeout_id);
|
||||
priv->timeout_id = 0;
|
||||
}
|
||||
@ -110,7 +110,7 @@ fprint_manager_in_use_notified (FprintDevice *rdev, GParamSpec *spec, FprintMana
|
||||
num_devices_used++;
|
||||
}
|
||||
|
||||
if (num_devices_used == 0 && !priv->no_timeout)
|
||||
if (num_devices_used == 0)
|
||||
priv->timeout_id = g_timeout_add_seconds (TIMEOUT, (GSourceFunc) fprint_manager_timeout_cb, manager);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user