2007-09-25 Dan Williams <dcbw@redhat.com>
* src/nm-device.c - (device_activation_go): small hack to work around race when activating deferred connections; should solve this in a better way git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2886 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2007-09-25 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/nm-device.c
|
||||
- (device_activation_go): small hack to work around race when
|
||||
activating deferred connections; should solve this in a better way
|
||||
|
||||
2007-09-25 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* introspection/nm-device.xml
|
||||
|
@@ -1167,6 +1167,13 @@ device_activation_go (NMDevice *self)
|
||||
self);
|
||||
priv->secrets_updated_id = id;
|
||||
|
||||
/* HACK: update the state a bit early to avoid a race between the
|
||||
* scheduled stage1 handler and nm_policy_device_change_check() thinking
|
||||
* that the activation request isn't deferred because the deferred bit
|
||||
* gets cleared a bit too early, when the connection becomes valid.
|
||||
*/
|
||||
nm_device_state_changed (self, NM_DEVICE_STATE_PREPARE);
|
||||
|
||||
nm_device_activate_schedule_stage1_device_prepare (self);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user