From 08cb46aa8ad9ffc8640183c600457e42cfecebc0 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 22 Oct 2008 15:22:17 +0000 Subject: [PATCH] 2008-10-22 Dan Williams * src/nm-gsm-device.c - (schedule_automatic_registration_again): use a short timeout here instead of an idle handler to avoid using too much CPU polling for something we should be waiting a bit for anyway git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4205 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- ChangeLog | 7 +++++++ src/nm-gsm-device.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d8e58548ef..55415f55ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-10-22 Dan Williams + + * src/nm-gsm-device.c + - (schedule_automatic_registration_again): use a short timeout here + instead of an idle handler to avoid using too much CPU polling for + something we should be waiting a bit for anyway + 2008-10-22 Dan Williams * include/NetworkManager.h diff --git a/src/nm-gsm-device.c b/src/nm-gsm-device.c index da71c5106d..dc44cbfc45 100644 --- a/src/nm-gsm-device.c +++ b/src/nm-gsm-device.c @@ -328,7 +328,7 @@ schedule_automatic_registration_again (NMGsmDevice *self) if (priv->pending_id) g_source_remove (priv->pending_id); - priv->pending_id = g_idle_add (automatic_registration_again, self); + priv->pending_id = g_timeout_add (1000, automatic_registration_again, self); } static void