From 32811afda4ccbfbd0918b29382b422959b7ecbc6 Mon Sep 17 00:00:00 2001 From: "B.Prathibha" Date: Sun, 27 Jan 2013 13:00:58 +0530 Subject: [PATCH] Use g_timeout_add_seconds wherever possible. --- src/mcd-master.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mcd-master.c b/src/mcd-master.c index 22ee8c2..df0937b 100644 --- a/src/mcd-master.c +++ b/src/mcd-master.c @@ -667,7 +667,7 @@ _mcd_master_account_replace_transport (McdMaster *master, } /* Milliseconds to wait for Connectivity coming back up before exiting MC */ -#define EXIT_COUNTDOWN_TIME 5000 +#define EXIT_COUNTDOWN_TIME 5 static gboolean _mcd_master_exit_by_timeout (gpointer data) @@ -697,7 +697,7 @@ mcd_master_shutdown (McdMaster *self, reason ? reason : "No reason specified", EXIT_COUNTDOWN_TIME); - priv->shutdown_timeout_id = g_timeout_add (EXIT_COUNTDOWN_TIME, + priv->shutdown_timeout_id = g_timeout_add_seconds (EXIT_COUNTDOWN_TIME, _mcd_master_exit_by_timeout, self); } -- 1.7.10.4