e3f6b8d373
git-svn-id: http://svn.sabayonlinux.org/overlay@1404 d7aec97c-591d-0410-af39-a8856400b30a
53 lines
1.6 KiB
Diff
53 lines
1.6 KiB
Diff
--- a/src/nm-device-802-3-ethernet.c
|
|
+++ b/src/nm-device-802-3-ethernet.c
|
|
@@ -108,18 +108,16 @@
|
|
GObject *obj,
|
|
NMDevice8023Ethernet *self)
|
|
{
|
|
+ GSource * source;
|
|
+
|
|
/* Make sure signal is for us */
|
|
if (NM_DEVICE (self) != NM_DEVICE (obj))
|
|
return;
|
|
|
|
- if (!nm_device_has_active_link (NM_DEVICE (self)))
|
|
- {
|
|
- GSource * source = g_idle_source_new ();
|
|
-
|
|
- g_source_set_callback (source, (GSourceFunc) link_activated_helper, self, NULL);
|
|
- g_source_attach (source, nm_device_get_main_context (NM_DEVICE (self)));
|
|
- g_source_unref (source);
|
|
- }
|
|
+ source = g_idle_source_new ();
|
|
+ g_source_set_callback (source, (GSourceFunc) link_activated_helper, self, NULL);
|
|
+ g_source_attach (source, nm_device_get_main_context (NM_DEVICE (self)));
|
|
+ g_source_unref (source);
|
|
}
|
|
|
|
|
|
@@ -135,18 +133,16 @@
|
|
GObject *obj,
|
|
NMDevice8023Ethernet *self)
|
|
{
|
|
+ GSource * source;
|
|
+
|
|
/* Make sure signal is for us */
|
|
if (NM_DEVICE (self) != NM_DEVICE (obj))
|
|
return;
|
|
|
|
- if (nm_device_has_active_link (NM_DEVICE (self)))
|
|
- {
|
|
- GSource * source = g_idle_source_new ();
|
|
-
|
|
- g_source_set_callback (source, (GSourceFunc) link_deactivated_helper, self, NULL);
|
|
- g_source_attach (source, nm_device_get_main_context (NM_DEVICE (self)));
|
|
- g_source_unref (source);
|
|
- }
|
|
+ source = g_idle_source_new ();
|
|
+ g_source_set_callback (source, (GSourceFunc) link_deactivated_helper, self, NULL);
|
|
+ g_source_attach (source, nm_device_get_main_context (NM_DEVICE (self)));
|
|
+ g_source_unref (source);
|
|
}
|
|
|
|
static void
|