{"action":"created","comment":{"url":"https://api.github.com/repos/ensime/ensime-vim/pulls/comments/56776864","id":56776864,"diff_hunk":"@@ -136,16 +136,23 @@ def queue_poll(self, sleep_t=0.5):\n \n         Value of sleep is low to improve responsiveness.\n         \"\"\"\n+        connection_alive = True\n         while self.running:\n             if self.ws:\n                 def logger_and_close(m):\n                     self.log(\"Websocket exception: {}\".format(m))\n-                    self.teardown()\n+                    if not self.running:","path":"ensime_shared/ensime.py","position":10,"original_position":10,"commit_id":"579e96a67805633f9d53ee12f4b85a396e75459e","original_commit_id":"579e96a67805633f9d53ee12f4b85a396e75459e","user":{"login":"ChrisCoffey","id":5373301,"avatar_url":"https://avatars.githubusercontent.com/u/5373301?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisCoffey","html_url":"https://github.com/ChrisCoffey","followers_url":"https://api.github.com/users/ChrisCoffey/followers","following_url":"https://api.github.com/users/ChrisCoffey/following{/other_user}","gists_url":"https://api.github.com/users/ChrisCoffey/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisCoffey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisCoffey/subscriptions","organizations_url":"https://api.github.com/users/ChrisCoffey/orgs","repos_url":"https://api.github.com/users/ChrisCoffey/repos","events_url":"https://api.github.com/users/ChrisCoffey/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisCoffey/received_events","type":"User","site_admin":false},"body":"I think disabling the plugin on any `WebsocketException` is a great solution!","created_at":"2016-03-21T01:09:38Z","updated_at":"2016-03-21T01:09:38Z","html_url":"https://github.com/ensime/ensime-vim/pull/202#discussion_r56776864","pull_request_url":"https://api.github.com/repos/ensime/ensime-vim/pulls/202","_links":{"self":{"href":"https://api.github.com/repos/ensime/ensime-vim/pulls/comments/56776864"},"html":{"href":"https://github.com/ensime/ensime-vim/pull/202#discussion_r56776864"},"pull_request":{"href":"https://api.github.com/repos/ensime/ensime-vim/pulls/202"}}},"pull_request":{"url":"https://api.github.com/repos/ensime/ensime-vim/pulls/202","id":63475993,"html_url":"https://github.com/ensime/ensime-vim/pull/202","diff_url":"https://github.com/ensime/ensime-vim/pull/202.diff","patch_url":"https://github.com/ensime/ensime-vim/pull/202.patch","issue_url":"https://api.github.com/repos/ensime/ensime-vim/issues/202","number":202,"state":"open","locked":false,"title":"Remove cyclic method dependency and exit vim ASAP","user":{"login":"jvican","id":2462974,"avatar_url":"https://avatars.githubusercontent.com/u/2462974?v=3","gravatar_id":"","url":"https://api.github.com/users/jvican","html_url":"https://github.com/jvican","followers_url":"https://api.github.com/users/jvican/followers","following_url":"https://api.github.com/users/jvican/following{/other_user}","gists_url":"https://api.github.com/users/jvican/gists{/gist_id}","starred_url":"https://api.github.com/users/jvican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvican/subscriptions","organizations_url":"https://api.github.com/users/jvican/orgs","repos_url":"https://api.github.com/users/jvican/repos","events_url":"https://api.github.com/users/jvican/events{/privacy}","received_events_url":"https://api.github.com/users/jvican/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-03-19T19:11:25Z","updated_at":"2016-03-21T01:09:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"472ca512609524a1fe7aa55ce1aa88ad62b1d7d5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ensime/ensime-vim/pulls/202/commits","review_comments_url":"https://api.github.com/repos/ensime/ensime-vim/pulls/202/comments","review_comment_url":"https://api.github.com/repos/ensime/ensime-vim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ensime/ensime-vim/issues/202/comments","statuses_url":"https://api.github.com/repos/ensime/ensime-vim/statuses/579e96a67805633f9d53ee12f4b85a396e75459e","head":{"label":"jvican:remove-cycle-teardown","ref":"remove-cycle-teardown","sha":"579e96a67805633f9d53ee12f4b85a396e75459e","user":{"login":"jvican","id":2462974,"avatar_url":"https://avatars.githubusercontent.com/u/2462974?v=3","gravatar_id":"","url":"https://api.github.com/users/jvican","html_url":"https://github.com/jvican","followers_url":"https://api.github.com/users/jvican/followers","following_url":"https://api.github.com/users/jvican/following{/other_user}","gists_url":"https://api.github.com/users/jvican/gists{/gist_id}","starred_url":"https://api.github.com/users/jvican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvican/subscriptions","organizations_url":"https://api.github.com/users/jvican/orgs","repos_url":"https://api.github.com/users/jvican/repos","events_url":"https://api.github.com/users/jvican/events{/privacy}","received_events_url":"https://api.github.com/users/jvican/received_events","type":"User","site_admin":false},"repo":{"id":42240870,"name":"ensime-vim","full_name":"jvican/ensime-vim","owner":{"login":"jvican","id":2462974,"avatar_url":"https://avatars.githubusercontent.com/u/2462974?v=3","gravatar_id":"","url":"https://api.github.com/users/jvican","html_url":"https://github.com/jvican","followers_url":"https://api.github.com/users/jvican/followers","following_url":"https://api.github.com/users/jvican/following{/other_user}","gists_url":"https://api.github.com/users/jvican/gists{/gist_id}","starred_url":"https://api.github.com/users/jvican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvican/subscriptions","organizations_url":"https://api.github.com/users/jvican/orgs","repos_url":"https://api.github.com/users/jvican/repos","events_url":"https://api.github.com/users/jvican/events{/privacy}","received_events_url":"https://api.github.com/users/jvican/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jvican/ensime-vim","description":"ENSIME for the Editor of the Beast (Vim)","fork":true,"url":"https://api.github.com/repos/jvican/ensime-vim","forks_url":"https://api.github.com/repos/jvican/ensime-vim/forks","keys_url":"https://api.github.com/repos/jvican/ensime-vim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jvican/ensime-vim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jvican/ensime-vim/teams","hooks_url":"https://api.github.com/repos/jvican/ensime-vim/hooks","issue_events_url":"https://api.github.com/repos/jvican/ensime-vim/issues/events{/number}","events_url":"https://api.github.com/repos/jvican/ensime-vim/events","assignees_url":"https://api.github.com/repos/jvican/ensime-vim/assignees{/user}","branches_url":"https://api.github.com/repos/jvican/ensime-vim/branches{/branch}","tags_url":"https://api.github.com/repos/jvican/ensime-vim/tags","blobs_url":"https://api.github.com/repos/jvican/ensime-vim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jvican/ensime-vim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jvican/ensime-vim/git/refs{/sha}","trees_url":"https://api.github.com/repos/jvican/ensime-vim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jvican/ensime-vim/statuses/{sha}","languages_url":"https://api.github.com/repos/jvican/ensime-vim/languages","stargazers_url":"https://api.github.com/repos/jvican/ensime-vim/stargazers","contributors_url":"https://api.github.com/repos/jvican/ensime-vim/contributors","subscribers_url":"https://api.github.com/repos/jvican/ensime-vim/subscribers","subscription_url":"https://api.github.com/repos/jvican/ensime-vim/subscription","commits_url":"https://api.github.com/repos/jvican/ensime-vim/commits{/sha}","git_commits_url":"https://api.github.com/repos/jvican/ensime-vim/git/commits{/sha}","comments_url":"https://api.github.com/repos/jvican/ensime-vim/comments{/number}","issue_comment_url":"https://api.github.com/repos/jvican/ensime-vim/issues/comments{/number}","contents_url":"https://api.github.com/repos/jvican/ensime-vim/contents/{+path}","compare_url":"https://api.github.com/repos/jvican/ensime-vim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jvican/ensime-vim/merges","archive_url":"https://api.github.com/repos/jvican/ensime-vim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jvican/ensime-vim/downloads","issues_url":"https://api.github.com/repos/jvican/ensime-vim/issues{/number}","pulls_url":"https://api.github.com/repos/jvican/ensime-vim/pulls{/number}","milestones_url":"https://api.github.com/repos/jvican/ensime-vim/milestones{/number}","notifications_url":"https://api.github.com/repos/jvican/ensime-vim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jvican/ensime-vim/labels{/name}","releases_url":"https://api.github.com/repos/jvican/ensime-vim/releases{/id}","deployments_url":"https://api.github.com/repos/jvican/ensime-vim/deployments","created_at":"2015-09-10T11:36:34Z","updated_at":"2016-02-15T08:52:49Z","pushed_at":"2016-03-20T17:30:25Z","git_url":"git://github.com/jvican/ensime-vim.git","ssh_url":"git@github.com:jvican/ensime-vim.git","clone_url":"https://github.com/jvican/ensime-vim.git","svn_url":"https://github.com/jvican/ensime-vim","homepage":null,"size":880,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"ensime:master","ref":"master","sha":"eb73caca8b694ebc9d500fd830156c052869d93f","user":{"login":"ensime","id":5089042,"avatar_url":"https://avatars.githubusercontent.com/u/5089042?v=3","gravatar_id":"","url":"https://api.github.com/users/ensime","html_url":"https://github.com/ensime","followers_url":"https://api.github.com/users/ensime/followers","following_url":"https://api.github.com/users/ensime/following{/other_user}","gists_url":"https://api.github.com/users/ensime/gists{/gist_id}","starred_url":"https://api.github.com/users/ensime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ensime/subscriptions","organizations_url":"https://api.github.com/users/ensime/orgs","repos_url":"https://api.github.com/users/ensime/repos","events_url":"https://api.github.com/users/ensime/events{/privacy}","received_events_url":"https://api.github.com/users/ensime/received_events","type":"Organization","site_admin":false},"repo":{"id":37286648,"name":"ensime-vim","full_name":"ensime/ensime-vim","owner":{"login":"ensime","id":5089042,"avatar_url":"https://avatars.githubusercontent.com/u/5089042?v=3","gravatar_id":"","url":"https://api.github.com/users/ensime","html_url":"https://github.com/ensime","followers_url":"https://api.github.com/users/ensime/followers","following_url":"https://api.github.com/users/ensime/following{/other_user}","gists_url":"https://api.github.com/users/ensime/gists{/gist_id}","starred_url":"https://api.github.com/users/ensime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ensime/subscriptions","organizations_url":"https://api.github.com/users/ensime/orgs","repos_url":"https://api.github.com/users/ensime/repos","events_url":"https://api.github.com/users/ensime/events{/privacy}","received_events_url":"https://api.github.com/users/ensime/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ensime/ensime-vim","description":"ENSIME for the Editor of the Beast (Vim)","fork":false,"url":"https://api.github.com/repos/ensime/ensime-vim","forks_url":"https://api.github.com/repos/ensime/ensime-vim/forks","keys_url":"https://api.github.com/repos/ensime/ensime-vim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ensime/ensime-vim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ensime/ensime-vim/teams","hooks_url":"https://api.github.com/repos/ensime/ensime-vim/hooks","issue_events_url":"https://api.github.com/repos/ensime/ensime-vim/issues/events{/number}","events_url":"https://api.github.com/repos/ensime/ensime-vim/events","assignees_url":"https://api.github.com/repos/ensime/ensime-vim/assignees{/user}","branches_url":"https://api.github.com/repos/ensime/ensime-vim/branches{/branch}","tags_url":"https://api.github.com/repos/ensime/ensime-vim/tags","blobs_url":"https://api.github.com/repos/ensime/ensime-vim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ensime/ensime-vim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ensime/ensime-vim/git/refs{/sha}","trees_url":"https://api.github.com/repos/ensime/ensime-vim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ensime/ensime-vim/statuses/{sha}","languages_url":"https://api.github.com/repos/ensime/ensime-vim/languages","stargazers_url":"https://api.github.com/repos/ensime/ensime-vim/stargazers","contributors_url":"https://api.github.com/repos/ensime/ensime-vim/contributors","subscribers_url":"https://api.github.com/repos/ensime/ensime-vim/subscribers","subscription_url":"https://api.github.com/repos/ensime/ensime-vim/subscription","commits_url":"https://api.github.com/repos/ensime/ensime-vim/commits{/sha}","git_commits_url":"https://api.github.com/repos/ensime/ensime-vim/git/commits{/sha}","comments_url":"https://api.github.com/repos/ensime/ensime-vim/comments{/number}","issue_comment_url":"https://api.github.com/repos/ensime/ensime-vim/issues/comments{/number}","contents_url":"https://api.github.com/repos/ensime/ensime-vim/contents/{+path}","compare_url":"https://api.github.com/repos/ensime/ensime-vim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ensime/ensime-vim/merges","archive_url":"https://api.github.com/repos/ensime/ensime-vim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ensime/ensime-vim/downloads","issues_url":"https://api.github.com/repos/ensime/ensime-vim/issues{/number}","pulls_url":"https://api.github.com/repos/ensime/ensime-vim/pulls{/number}","milestones_url":"https://api.github.com/repos/ensime/ensime-vim/milestones{/number}","notifications_url":"https://api.github.com/repos/ensime/ensime-vim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ensime/ensime-vim/labels{/name}","releases_url":"https://api.github.com/repos/ensime/ensime-vim/releases{/id}","deployments_url":"https://api.github.com/repos/ensime/ensime-vim/deployments","created_at":"2015-06-11T21:16:05Z","updated_at":"2016-03-20T12:26:46Z","pushed_at":"2016-03-20T17:30:16Z","git_url":"git://github.com/ensime/ensime-vim.git","ssh_url":"git@github.com:ensime/ensime-vim.git","clone_url":"https://github.com/ensime/ensime-vim.git","svn_url":"https://github.com/ensime/ensime-vim","homepage":null,"size":884,"stargazers_count":88,"watchers_count":88,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":9,"forks":22,"open_issues":9,"watchers":88,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ensime/ensime-vim/pulls/202"},"html":{"href":"https://github.com/ensime/ensime-vim/pull/202"},"issue":{"href":"https://api.github.com/repos/ensime/ensime-vim/issues/202"},"comments":{"href":"https://api.github.com/repos/ensime/ensime-vim/issues/202/comments"},"review_comments":{"href":"https://api.github.com/repos/ensime/ensime-vim/pulls/202/comments"},"review_comment":{"href":"https://api.github.com/repos/ensime/ensime-vim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ensime/ensime-vim/pulls/202/commits"},"statuses":{"href":"https://api.github.com/repos/ensime/ensime-vim/statuses/579e96a67805633f9d53ee12f4b85a396e75459e"}}}}