projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21b29ae
)
service: Do not reconnect to an already connected service
author
Samuel Ortiz
<sameo@linux.intel.com>
Thu, 13 Jan 2011 14:36:23 +0000
(15:36 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Thu, 13 Jan 2011 14:37:30 +0000
(15:37 +0100)
Fixes BMC#11879
src/service.c
patch
|
blob
|
history
diff --git
a/src/service.c
b/src/service.c
index
74493dc
..
40fd87d
100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-3658,6
+3658,16
@@
done:
goto failed;
}
+ if (is_connected(service) == TRUE) {
+ err = -EISCONN;
+ goto failed;
+ }
+
+ if (is_connecting(service) == TRUE) {
+ err = -EALREADY;
+ goto failed;
+ }
+
set_reconnect_state(service, FALSE);
__connman_device_disconnect(device);