2008-10-22 Dan Williams <dcbw@redhat.com>
authorDan Williams <dcbw@redhat.com>
Wed, 22 Oct 2008 15:22:17 +0000 (15:22 +0000)
committerDan Williams <dcbw@redhat.com>
Wed, 22 Oct 2008 15:22:17 +0000 (15:22 +0000)
* 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
src/nm-gsm-device.c

index d8e5854..55415f5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-10-22  Dan Williams  <dcbw@redhat.com>
+
+       * 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  <dcbw@redhat.com>
 
        * include/NetworkManager.h
index da71c51..dc44cbf 100644 (file)
@@ -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