---
 src/device.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/device.c b/src/device.c
index 6b669f2..21ba427 100644
--- a/src/device.c
+++ b/src/device.c
@@ -326,6 +326,8 @@ static int set_powered(struct connman_device *device, 
connman_bool_t powered)
        } else {
                device->powered_pending = powered;
 
+               device->reconnect = FALSE;
+
                clear_scan_trigger(device);
 
                g_hash_table_remove_all(device->networks);
@@ -1349,6 +1351,8 @@ int __connman_device_disable(struct connman_device 
*device)
 
        device->powered_pending = FALSE;
 
+       device->reconnect = FALSE;
+
        clear_scan_trigger(device);
 
        g_hash_table_remove_all(device->networks);
-- 
1.6.1.3

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to