diff options
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c index 87e3533b..c1d74b67 100644 --- a/src/device.c +++ b/src/device.c @@ -989,8 +989,10 @@ int connman_device_set_powered(struct connman_device *device, device->pending = NULL; } - if (device->powered == powered) + if (device->powered == powered) { + device->powered_pending = powered; return -EALREADY; + } if (powered == TRUE) __connman_device_enable(device); |