{"action":"closed","number":63,"pull_request":{"url":"https://api.github.com/repos/commonsguy/cwac-cam2/pulls/63","id":41461473,"html_url":"https://github.com/commonsguy/cwac-cam2/pull/63","diff_url":"https://github.com/commonsguy/cwac-cam2/pull/63.diff","patch_url":"https://github.com/commonsguy/cwac-cam2/pull/63.patch","issue_url":"https://api.github.com/repos/commonsguy/cwac-cam2/issues/63","number":63,"state":"closed","locked":false,"title":"fix problem with async close session","user":{"login":"tplkn","id":1462664,"avatar_url":"https://avatars.githubusercontent.com/u/1462664?v=3","gravatar_id":"","url":"https://api.github.com/users/tplkn","html_url":"https://github.com/tplkn","followers_url":"https://api.github.com/users/tplkn/followers","following_url":"https://api.github.com/users/tplkn/following{/other_user}","gists_url":"https://api.github.com/users/tplkn/gists{/gist_id}","starred_url":"https://api.github.com/users/tplkn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tplkn/subscriptions","organizations_url":"https://api.github.com/users/tplkn/orgs","repos_url":"https://api.github.com/users/tplkn/repos","events_url":"https://api.github.com/users/tplkn/events{/privacy}","received_events_url":"https://api.github.com/users/tplkn/received_events","type":"User","site_admin":false},"body":"When we switch camera (front -> back / back -> front) we should recreate session, but in fact after some switches camera will broken because when we close session with CameraController#stop we will send message ClosedEvent in bus asynchronously, so we can have situation when call public void onEventMainThread(CameraEngine.ClosedEvent event)  and switchPending == true and call method open (within onEventMainThread) and session not equal null.","created_at":"2015-08-03T12:23:27Z","updated_at":"2015-08-04T15:48:32Z","closed_at":"2015-08-04T15:48:32Z","merged_at":null,"merge_commit_sha":"5e5d84042ea845a46a8136fdf480fa26cad9e335","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/commonsguy/cwac-cam2/pulls/63/commits","review_comments_url":"https://api.github.com/repos/commonsguy/cwac-cam2/pulls/63/comments","review_comment_url":"https://api.github.com/repos/commonsguy/cwac-cam2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/commonsguy/cwac-cam2/issues/63/comments","statuses_url":"https://api.github.com/repos/commonsguy/cwac-cam2/statuses/dc59c8edbcec63ea34b7c426f7e3a2a9adec9825","head":{"label":"tplkn:master","ref":"master","sha":"dc59c8edbcec63ea34b7c426f7e3a2a9adec9825","user":{"login":"tplkn","id":1462664,"avatar_url":"https://avatars.githubusercontent.com/u/1462664?v=3","gravatar_id":"","url":"https://api.github.com/users/tplkn","html_url":"https://github.com/tplkn","followers_url":"https://api.github.com/users/tplkn/followers","following_url":"https://api.github.com/users/tplkn/following{/other_user}","gists_url":"https://api.github.com/users/tplkn/gists{/gist_id}","starred_url":"https://api.github.com/users/tplkn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tplkn/subscriptions","organizations_url":"https://api.github.com/users/tplkn/orgs","repos_url":"https://api.github.com/users/tplkn/repos","events_url":"https://api.github.com/users/tplkn/events{/privacy}","received_events_url":"https://api.github.com/users/tplkn/received_events","type":"User","site_admin":false},"repo":{"id":40115364,"name":"cwac-cam2","full_name":"tplkn/cwac-cam2","owner":{"login":"tplkn","id":1462664,"avatar_url":"https://avatars.githubusercontent.com/u/1462664?v=3","gravatar_id":"","url":"https://api.github.com/users/tplkn","html_url":"https://github.com/tplkn","followers_url":"https://api.github.com/users/tplkn/followers","following_url":"https://api.github.com/users/tplkn/following{/other_user}","gists_url":"https://api.github.com/users/tplkn/gists{/gist_id}","starred_url":"https://api.github.com/users/tplkn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tplkn/subscriptions","organizations_url":"https://api.github.com/users/tplkn/orgs","repos_url":"https://api.github.com/users/tplkn/repos","events_url":"https://api.github.com/users/tplkn/events{/privacy}","received_events_url":"https://api.github.com/users/tplkn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tplkn/cwac-cam2","description":"Android Camera API, Made Better. Again.","fork":true,"url":"https://api.github.com/repos/tplkn/cwac-cam2","forks_url":"https://api.github.com/repos/tplkn/cwac-cam2/forks","keys_url":"https://api.github.com/repos/tplkn/cwac-cam2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tplkn/cwac-cam2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tplkn/cwac-cam2/teams","hooks_url":"https://api.github.com/repos/tplkn/cwac-cam2/hooks","issue_events_url":"https://api.github.com/repos/tplkn/cwac-cam2/issues/events{/number}","events_url":"https://api.github.com/repos/tplkn/cwac-cam2/events","assignees_url":"https://api.github.com/repos/tplkn/cwac-cam2/assignees{/user}","branches_url":"https://api.github.com/repos/tplkn/cwac-cam2/branches{/branch}","tags_url":"https://api.github.com/repos/tplkn/cwac-cam2/tags","blobs_url":"https://api.github.com/repos/tplkn/cwac-cam2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tplkn/cwac-cam2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tplkn/cwac-cam2/git/refs{/sha}","trees_url":"https://api.github.com/repos/tplkn/cwac-cam2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tplkn/cwac-cam2/statuses/{sha}","languages_url":"https://api.github.com/repos/tplkn/cwac-cam2/languages","stargazers_url":"https://api.github.com/repos/tplkn/cwac-cam2/stargazers","contributors_url":"https://api.github.com/repos/tplkn/cwac-cam2/contributors","subscribers_url":"https://api.github.com/repos/tplkn/cwac-cam2/subscribers","subscription_url":"https://api.github.com/repos/tplkn/cwac-cam2/subscription","commits_url":"https://api.github.com/repos/tplkn/cwac-cam2/commits{/sha}","git_commits_url":"https://api.github.com/repos/tplkn/cwac-cam2/git/commits{/sha}","comments_url":"https://api.github.com/repos/tplkn/cwac-cam2/comments{/number}","issue_comment_url":"https://api.github.com/repos/tplkn/cwac-cam2/issues/comments{/number}","contents_url":"https://api.github.com/repos/tplkn/cwac-cam2/contents/{+path}","compare_url":"https://api.github.com/repos/tplkn/cwac-cam2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tplkn/cwac-cam2/merges","archive_url":"https://api.github.com/repos/tplkn/cwac-cam2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tplkn/cwac-cam2/downloads","issues_url":"https://api.github.com/repos/tplkn/cwac-cam2/issues{/number}","pulls_url":"https://api.github.com/repos/tplkn/cwac-cam2/pulls{/number}","milestones_url":"https://api.github.com/repos/tplkn/cwac-cam2/milestones{/number}","notifications_url":"https://api.github.com/repos/tplkn/cwac-cam2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tplkn/cwac-cam2/labels{/name}","releases_url":"https://api.github.com/repos/tplkn/cwac-cam2/releases{/id}","created_at":"2015-08-03T09:05:44Z","updated_at":"2015-08-03T09:05:44Z","pushed_at":"2015-08-03T12:15:27Z","git_url":"git://github.com/tplkn/cwac-cam2.git","ssh_url":"git@github.com:tplkn/cwac-cam2.git","clone_url":"https://github.com/tplkn/cwac-cam2.git","svn_url":"https://github.com/tplkn/cwac-cam2","homepage":null,"size":486,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"commonsguy:master","ref":"master","sha":"7aaa40c54360e007240b7e6504a424524ceda99a","user":{"login":"commonsguy","id":103772,"avatar_url":"https://avatars.githubusercontent.com/u/103772?v=3","gravatar_id":"","url":"https://api.github.com/users/commonsguy","html_url":"https://github.com/commonsguy","followers_url":"https://api.github.com/users/commonsguy/followers","following_url":"https://api.github.com/users/commonsguy/following{/other_user}","gists_url":"https://api.github.com/users/commonsguy/gists{/gist_id}","starred_url":"https://api.github.com/users/commonsguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commonsguy/subscriptions","organizations_url":"https://api.github.com/users/commonsguy/orgs","repos_url":"https://api.github.com/users/commonsguy/repos","events_url":"https://api.github.com/users/commonsguy/events{/privacy}","received_events_url":"https://api.github.com/users/commonsguy/received_events","type":"User","site_admin":false},"repo":{"id":34913518,"name":"cwac-cam2","full_name":"commonsguy/cwac-cam2","owner":{"login":"commonsguy","id":103772,"avatar_url":"https://avatars.githubusercontent.com/u/103772?v=3","gravatar_id":"","url":"https://api.github.com/users/commonsguy","html_url":"https://github.com/commonsguy","followers_url":"https://api.github.com/users/commonsguy/followers","following_url":"https://api.github.com/users/commonsguy/following{/other_user}","gists_url":"https://api.github.com/users/commonsguy/gists{/gist_id}","starred_url":"https://api.github.com/users/commonsguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commonsguy/subscriptions","organizations_url":"https://api.github.com/users/commonsguy/orgs","repos_url":"https://api.github.com/users/commonsguy/repos","events_url":"https://api.github.com/users/commonsguy/events{/privacy}","received_events_url":"https://api.github.com/users/commonsguy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/commonsguy/cwac-cam2","description":"Android Camera API, Made Better. Again.","fork":false,"url":"https://api.github.com/repos/commonsguy/cwac-cam2","forks_url":"https://api.github.com/repos/commonsguy/cwac-cam2/forks","keys_url":"https://api.github.com/repos/commonsguy/cwac-cam2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/commonsguy/cwac-cam2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/commonsguy/cwac-cam2/teams","hooks_url":"https://api.github.com/repos/commonsguy/cwac-cam2/hooks","issue_events_url":"https://api.github.com/repos/commonsguy/cwac-cam2/issues/events{/number}","events_url":"https://api.github.com/repos/commonsguy/cwac-cam2/events","assignees_url":"https://api.github.com/repos/commonsguy/cwac-cam2/assignees{/user}","branches_url":"https://api.github.com/repos/commonsguy/cwac-cam2/branches{/branch}","tags_url":"https://api.github.com/repos/commonsguy/cwac-cam2/tags","blobs_url":"https://api.github.com/repos/commonsguy/cwac-cam2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/commonsguy/cwac-cam2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/commonsguy/cwac-cam2/git/refs{/sha}","trees_url":"https://api.github.com/repos/commonsguy/cwac-cam2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/commonsguy/cwac-cam2/statuses/{sha}","languages_url":"https://api.github.com/repos/commonsguy/cwac-cam2/languages","stargazers_url":"https://api.github.com/repos/commonsguy/cwac-cam2/stargazers","contributors_url":"https://api.github.com/repos/commonsguy/cwac-cam2/contributors","subscribers_url":"https://api.github.com/repos/commonsguy/cwac-cam2/subscribers","subscription_url":"https://api.github.com/repos/commonsguy/cwac-cam2/subscription","commits_url":"https://api.github.com/repos/commonsguy/cwac-cam2/commits{/sha}","git_commits_url":"https://api.github.com/repos/commonsguy/cwac-cam2/git/commits{/sha}","comments_url":"https://api.github.com/repos/commonsguy/cwac-cam2/comments{/number}","issue_comment_url":"https://api.github.com/repos/commonsguy/cwac-cam2/issues/comments{/number}","contents_url":"https://api.github.com/repos/commonsguy/cwac-cam2/contents/{+path}","compare_url":"https://api.github.com/repos/commonsguy/cwac-cam2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/commonsguy/cwac-cam2/merges","archive_url":"https://api.github.com/repos/commonsguy/cwac-cam2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/commonsguy/cwac-cam2/downloads","issues_url":"https://api.github.com/repos/commonsguy/cwac-cam2/issues{/number}","pulls_url":"https://api.github.com/repos/commonsguy/cwac-cam2/pulls{/number}","milestones_url":"https://api.github.com/repos/commonsguy/cwac-cam2/milestones{/number}","notifications_url":"https://api.github.com/repos/commonsguy/cwac-cam2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/commonsguy/cwac-cam2/labels{/name}","releases_url":"https://api.github.com/repos/commonsguy/cwac-cam2/releases{/id}","created_at":"2015-05-01T17:05:59Z","updated_at":"2015-08-04T03:59:59Z","pushed_at":"2015-08-04T15:46:19Z","git_url":"git://github.com/commonsguy/cwac-cam2.git","ssh_url":"git@github.com:commonsguy/cwac-cam2.git","clone_url":"https://github.com/commonsguy/cwac-cam2.git","svn_url":"https://github.com/commonsguy/cwac-cam2","homepage":null,"size":486,"stargazers_count":115,"watchers_count":115,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":40,"forks":12,"open_issues":40,"watchers":115,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/commonsguy/cwac-cam2/pulls/63"},"html":{"href":"https://github.com/commonsguy/cwac-cam2/pull/63"},"issue":{"href":"https://api.github.com/repos/commonsguy/cwac-cam2/issues/63"},"comments":{"href":"https://api.github.com/repos/commonsguy/cwac-cam2/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/commonsguy/cwac-cam2/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/commonsguy/cwac-cam2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/commonsguy/cwac-cam2/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/commonsguy/cwac-cam2/statuses/dc59c8edbcec63ea34b7c426f7e3a2a9adec9825"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":3,"deletions":2,"changed_files":1}}