{"action":"closed","issue":{"url":"https://api.github.com/repos/robertbasic/pugdebug/issues/16","labels_url":"https://api.github.com/repos/robertbasic/pugdebug/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/robertbasic/pugdebug/issues/16/comments","events_url":"https://api.github.com/repos/robertbasic/pugdebug/issues/16/events","html_url":"https://github.com/robertbasic/pugdebug/issues/16","id":65705669,"number":16,"title":"Hitting Stop without Start throws an error","user":{"login":"ihabunek","id":482138,"avatar_url":"https://avatars.githubusercontent.com/u/482138?v=3","gravatar_id":"","url":"https://api.github.com/users/ihabunek","html_url":"https://github.com/ihabunek","followers_url":"https://api.github.com/users/ihabunek/followers","following_url":"https://api.github.com/users/ihabunek/following{/other_user}","gists_url":"https://api.github.com/users/ihabunek/gists{/gist_id}","starred_url":"https://api.github.com/users/ihabunek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihabunek/subscriptions","organizations_url":"https://api.github.com/users/ihabunek/orgs","repos_url":"https://api.github.com/users/ihabunek/repos","events_url":"https://api.github.com/users/ihabunek/events{/privacy}","received_events_url":"https://api.github.com/users/ihabunek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/robertbasic/pugdebug/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-01T14:58:11Z","updated_at":"2015-04-01T16:50:26Z","closed_at":"2015-04-01T16:50:26Z","body":"To reproduce:\r\n1. Start Pug\r\n2. Hit the \"Stop\" button\r\n\r\nThe following is shown in the console:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home/ihabunek/projects/ihabunek/pugdebug/pugdebug/server.py\", line 59, in run\r\n    response = self.__stop()\r\n  File \"/home/ihabunek/projects/ihabunek/pugdebug/pugdebug/server.py\", line 192, in __stop\r\n    response = self.__send_command(command)\r\n  File \"/home/ihabunek/projects/ihabunek/pugdebug/pugdebug/server.py\", line 263, in __send_command\r\n    self.sock.send(bytes(command + '\\0', 'utf-8'))\r\nAttributeError: 'NoneType' object has no attribute 'send'\r\n```\r\n\r\nAfter this,  Pug will no longer work, i.e. hitting Start and starting a script will not start a debugging session."}}