summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 7633cee..fcbfd86 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;