summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-08-12 13:03:11 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2010-08-12 13:03:11 +0200
commit1c119edf9c3f7dcabcf02aa5870330e4b28be5fc (patch)
treeaea854d879eca8728bf76c0db539d89af1602925 /src
parentc3c4d4f0e56aa974fe14fca227c22a542a574b49 (diff)
downloadconnman-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.c6
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;