{"action":"created","issue":{"url":"https://api.github.com/repos/NordicSemiconductor/Android-BLE-Library/issues/26","repository_url":"https://api.github.com/repos/NordicSemiconductor/Android-BLE-Library","labels_url":"https://api.github.com/repos/NordicSemiconductor/Android-BLE-Library/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/NordicSemiconductor/Android-BLE-Library/issues/26/comments","events_url":"https://api.github.com/repos/NordicSemiconductor/Android-BLE-Library/issues/26/events","html_url":"https://github.com/NordicSemiconductor/Android-BLE-Library/issues/26","id":364499547,"node_id":"MDU6SXNzdWUzNjQ0OTk1NDc=","number":26,"title":"autoConnect=true attempts to reconnect even after invoking disconnect()","user":{"login":"maragues-kolibree","id":30043122,"node_id":"MDQ6VXNlcjMwMDQzMTIy","avatar_url":"https://avatars0.githubusercontent.com/u/30043122?v=4","gravatar_id":"","url":"https://api.github.com/users/maragues-kolibree","html_url":"https://github.com/maragues-kolibree","followers_url":"https://api.github.com/users/maragues-kolibree/followers","following_url":"https://api.github.com/users/maragues-kolibree/following{/other_user}","gists_url":"https://api.github.com/users/maragues-kolibree/gists{/gist_id}","starred_url":"https://api.github.com/users/maragues-kolibree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maragues-kolibree/subscriptions","organizations_url":"https://api.github.com/users/maragues-kolibree/orgs","repos_url":"https://api.github.com/users/maragues-kolibree/repos","events_url":"https://api.github.com/users/maragues-kolibree/events{/privacy}","received_events_url":"https://api.github.com/users/maragues-kolibree/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"philips77","id":6576580,"node_id":"MDQ6VXNlcjY1NzY1ODA=","avatar_url":"https://avatars0.githubusercontent.com/u/6576580?v=4","gravatar_id":"","url":"https://api.github.com/users/philips77","html_url":"https://github.com/philips77","followers_url":"https://api.github.com/users/philips77/followers","following_url":"https://api.github.com/users/philips77/following{/other_user}","gists_url":"https://api.github.com/users/philips77/gists{/gist_id}","starred_url":"https://api.github.com/users/philips77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philips77/subscriptions","organizations_url":"https://api.github.com/users/philips77/orgs","repos_url":"https://api.github.com/users/philips77/repos","events_url":"https://api.github.com/users/philips77/events{/privacy}","received_events_url":"https://api.github.com/users/philips77/received_events","type":"User","site_admin":false},"assignees":[{"login":"philips77","id":6576580,"node_id":"MDQ6VXNlcjY1NzY1ODA=","avatar_url":"https://avatars0.githubusercontent.com/u/6576580?v=4","gravatar_id":"","url":"https://api.github.com/users/philips77","html_url":"https://github.com/philips77","followers_url":"https://api.github.com/users/philips77/followers","following_url":"https://api.github.com/users/philips77/following{/other_user}","gists_url":"https://api.github.com/users/philips77/gists{/gist_id}","starred_url":"https://api.github.com/users/philips77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philips77/subscriptions","organizations_url":"https://api.github.com/users/philips77/orgs","repos_url":"https://api.github.com/users/philips77/repos","events_url":"https://api.github.com/users/philips77/events{/privacy}","received_events_url":"https://api.github.com/users/philips77/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2018-09-27T14:19:23Z","updated_at":"2018-10-01T10:42:11Z","closed_at":null,"author_association":"NONE","body":"I'm trying to disconnect from a device with a connection attempt in progress, but apparently the disconnect is never executed (I never receive any callback) and the _autoConnect=true_ causes an undesired reconnect attempt\r\n\r\nSteps\r\n\r\n1. Invoke _connect.await()_ on a switched off device\r\n2. After some seconds, invoke \r\n\r\n```kotlin\r\n        disconnect()\r\n                .done { Timber.d(\"disconnect success\") }\r\n                .fail { device, status ->\r\n                    Timber.d(\"disconnect fail\")\r\n\r\n                    close()\r\n                }\r\n                .enqueue()\r\n```\r\n\r\n3. After some time, _connect.await()_  throws a _RequestFailedException: Request failed with status 133_ and immediately attempts to reconnect. None of the disconnect callbacks is invoked\r\n\r\nIs this working as intended or is it a bug? "},"comment":{"url":"https://api.github.com/repos/NordicSemiconductor/Android-BLE-Library/issues/comments/425863716","html_url":"https://github.com/NordicSemiconductor/Android-BLE-Library/issues/26#issuecomment-425863716","issue_url":"https://api.github.com/repos/NordicSemiconductor/Android-BLE-Library/issues/26","id":425863716,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTg2MzcxNg==","user":{"login":"philips77","id":6576580,"node_id":"MDQ6VXNlcjY1NzY1ODA=","avatar_url":"https://avatars0.githubusercontent.com/u/6576580?v=4","gravatar_id":"","url":"https://api.github.com/users/philips77","html_url":"https://github.com/philips77","followers_url":"https://api.github.com/users/philips77/followers","following_url":"https://api.github.com/users/philips77/following{/other_user}","gists_url":"https://api.github.com/users/philips77/gists{/gist_id}","starred_url":"https://api.github.com/users/philips77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philips77/subscriptions","organizations_url":"https://api.github.com/users/philips77/orgs","repos_url":"https://api.github.com/users/philips77/repos","events_url":"https://api.github.com/users/philips77/events{/privacy}","received_events_url":"https://api.github.com/users/philips77/received_events","type":"User","site_admin":false},"created_at":"2018-10-01T10:42:11Z","updated_at":"2018-10-01T10:42:11Z","author_association":"MEMBER","body":"Fixed in beta4 :)"}}
{"actor":{"display_login":"philips77"}}