projects
/
connman
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c6f465
)
Fail connect attempt if not disconnected
author
Marcel Holtmann
<marcel@holtmann.org>
Tue, 21 Apr 2009 03:20:46 +0000
(
04:20
+0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 21 Apr 2009 03:20:46 +0000
(
04:20
+0100)
src/device.c
patch
|
blob
|
history
diff --git
a/src/device.c
b/src/device.c
index
c75e331
..
46c3967
100644
(file)
--- a/
src/device.c
+++ b/
src/device.c
@@
-1270,6
+1270,9
@@
int __connman_device_connect(struct connman_device *device)
{
DBG("device %p", device);
+ if (device->disconnected == FALSE)
+ return -EINVAL;
+
return 0;
}