From af42ec70f30ff54c33e4b3fac32601cf58e081e7 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Sat, 22 Nov 2008 00:27:45 +0000 Subject: [PATCH] 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. --- src/manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/manager.c b/src/manager.c index cc2a378..f1e18aa 100644 --- a/src/manager.c +++ b/src/manager.c @@ -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); }