From: Marcel Holtmann Date: Tue, 21 Apr 2009 03:20:46 +0000 (+0100) Subject: Fail connect attempt if not disconnected X-Git-Tag: 2.0_alpha~3871 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5ca807aa300eb258410abe57655286915d470f6;p=framework%2Fconnectivity%2Fconnman.git Fail connect attempt if not disconnected --- diff --git a/src/device.c b/src/device.c index c75e331..46c3967 100644 --- 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; }