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



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4205 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2008-10-22 15:22:17 +00:00
parent aa9adc73d5
commit 08cb46aa8a
2 changed files with 8 additions and 1 deletions

View File

@ -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

View 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