diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2015-10-30 15:27:25 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2015-11-02 13:27:22 +0200 |
commit | 6ada5d5b03acc383ae33e773782d8c725c5df78d (patch) | |
tree | f4095d74caf291395b72d4f16fc0666ee57110d8 /src | |
parent | f5f2ec0177aa30b2a0e2f97d615d6dba89be3b58 (diff) | |
download | bluez-6ada5d5b03acc383ae33e773782d8c725c5df78d.tar.gz |
core/service: Fix failing to connect external profile
When initiating a connection to a external profile btd_service_connect
will be called which will change the service state to
BTD_SERVICE_STATE_CONNECTING but then once the connection completes
service_accept is called but since it now checks the state it would
return -EALREADY to prevent driver accept to be called more than once.
Diffstat (limited to 'src')
-rw-r--r-- | src/service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c index 2ed72fbec..7da922cde 100644 --- a/src/service.c +++ b/src/service.c @@ -191,7 +191,7 @@ int service_accept(struct btd_service *service) break; case BTD_SERVICE_STATE_CONNECTING: case BTD_SERVICE_STATE_CONNECTED: - return -EALREADY; + return 0; case BTD_SERVICE_STATE_DISCONNECTING: return -EBUSY; } |