diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-05-20 16:09:20 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-05-20 16:09:20 -0700 |
commit | dfbf65eddf2f96ba9d0e58bf17fe0163830e1f08 (patch) | |
tree | 00da94956487d1b55b079485eac11287bbeedc2c | |
parent | 8b3b17b9af06ed2d1476a5dc421d42a23292dcf2 (diff) | |
download | connman-dfbf65eddf2f96ba9d0e58bf17fe0163830e1f08.tar.gz connman-dfbf65eddf2f96ba9d0e58bf17fe0163830e1f08.tar.bz2 connman-dfbf65eddf2f96ba9d0e58bf17fe0163830e1f08.zip |
Disconnect currently connected networks first
-rw-r--r-- | src/network.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network.c b/src/network.c index bffa5504..14330d88 100644 --- a/src/network.c +++ b/src/network.c @@ -819,6 +819,8 @@ int __connman_network_connect(struct connman_network *network) if (network->driver->connect == NULL) return -ENOSYS; + __connman_device_disconnect(network->device); + err = network->driver->connect(network); if (err == 0) { network->connected = TRUE; |