{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/Cognitive-Speech-TTS/issues/7","repository_url":"https://api.github.com/repos/Microsoft/Cognitive-Speech-TTS","labels_url":"https://api.github.com/repos/Microsoft/Cognitive-Speech-TTS/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/Cognitive-Speech-TTS/issues/7/comments","events_url":"https://api.github.com/repos/Microsoft/Cognitive-Speech-TTS/issues/7/events","html_url":"https://github.com/Microsoft/Cognitive-Speech-TTS/issues/7","id":188070506,"number":7,"title":"Connection cleanup in Authentication class of SpeechSDK","user":{"login":"mridulasandy","id":22844050,"avatar_url":"https://avatars.githubusercontent.com/u/22844050?v=3","gravatar_id":"","url":"https://api.github.com/users/mridulasandy","html_url":"https://github.com/mridulasandy","followers_url":"https://api.github.com/users/mridulasandy/followers","following_url":"https://api.github.com/users/mridulasandy/following{/other_user}","gists_url":"https://api.github.com/users/mridulasandy/gists{/gist_id}","starred_url":"https://api.github.com/users/mridulasandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mridulasandy/subscriptions","organizations_url":"https://api.github.com/users/mridulasandy/orgs","repos_url":"https://api.github.com/users/mridulasandy/repos","events_url":"https://api.github.com/users/mridulasandy/events{/privacy}","received_events_url":"https://api.github.com/users/mridulasandy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-08T18:40:19Z","updated_at":"2016-11-08T18:40:19Z","closed_at":null,"body":"The best practice is to have finally block to check status of the connection and close it.\r\n\r\n`//webRequest.disconnect();\r\n\r\n            this.accessToken = strBuffer.toString();\r\n\r\n        }catch (Exception e){\r\n            Log.e(LOG_TAG, \"Exception error\", e);\r\n        }\r\n        finally {\r\n            if (webRequest != null) {\r\n                webRequest.disconnect();\r\n            }\r\n        }`\r\n"}}
{"actor":{"display_login":"mridulasandy"}}