diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-08-12 13:03:11 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-08-12 13:03:11 +0200 |
commit | 1c119edf9c3f7dcabcf02aa5870330e4b28be5fc (patch) | |
tree | aea854d879eca8728bf76c0db539d89af1602925 /src | |
parent | c3c4d4f0e56aa974fe14fca227c22a542a574b49 (diff) | |
download | connman-1c119edf9c3f7dcabcf02aa5870330e4b28be5fc.tar.gz connman-1c119edf9c3f7dcabcf02aa5870330e4b28be5fc.tar.bz2 connman-1c119edf9c3f7dcabcf02aa5870330e4b28be5fc.zip |
Device is not offline when enabled succeeds or is in progress
Diffstat (limited to 'src')
-rw-r--r-- | src/device.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/device.c b/src/device.c index 7633cee9..fcbfd860 100644 --- a/src/device.c +++ b/src/device.c @@ -1092,11 +1092,9 @@ int __connman_device_enable_persistent(struct connman_device *device) err = __connman_device_enable(device); if (err == 0 || err == -EINPROGRESS) { - if (__connman_profile_get_offlinemode() == TRUE) { - device->offlinemode = FALSE; + device->offlinemode = FALSE; + if (__connman_profile_get_offlinemode() == TRUE) __connman_profile_set_offlinemode(FALSE, FALSE); - } - } return err; |