projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b3b17b
)
Disconnect currently connected networks first
author
Marcel Holtmann
<marcel@holtmann.org>
Wed, 20 May 2009 23:09:20 +0000
(16:09 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 20 May 2009 23:09:20 +0000
(16:09 -0700)
src/network.c
patch
|
blob
|
history
diff --git
a/src/network.c
b/src/network.c
index
bffa550
..
14330d8
100644
(file)
--- 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;