{"action":"created","issue":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/259","labels_url":"https://api.github.com/repos/segmentio/nightmare/issues/259/labels{/name}","comments_url":"https://api.github.com/repos/segmentio/nightmare/issues/259/comments","events_url":"https://api.github.com/repos/segmentio/nightmare/issues/259/events","html_url":"https://github.com/segmentio/nightmare/issues/259","id":109146489,"number":259,"title":"Process never stops if you call `.end` without an argument","user":{"login":"nichoth","id":5776508,"avatar_url":"https://avatars.githubusercontent.com/u/5776508?v=3","gravatar_id":"","url":"https://api.github.com/users/nichoth","html_url":"https://github.com/nichoth","followers_url":"https://api.github.com/users/nichoth/followers","following_url":"https://api.github.com/users/nichoth/following{/other_user}","gists_url":"https://api.github.com/users/nichoth/gists{/gist_id}","starred_url":"https://api.github.com/users/nichoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nichoth/subscriptions","organizations_url":"https://api.github.com/users/nichoth/orgs","repos_url":"https://api.github.com/users/nichoth/repos","events_url":"https://api.github.com/users/nichoth/events{/privacy}","received_events_url":"https://api.github.com/users/nichoth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-30T18:00:36Z","updated_at":"2015-09-30T18:10:34Z","closed_at":null,"body":"This doesn't work:\r\n```js\r\nnightmare.end();\r\n```\r\n\r\nBut this does:\r\n```js\r\nnightmare.end(function() {});\r\n```"},"comment":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/comments/144494754","html_url":"https://github.com/segmentio/nightmare/issues/259#issuecomment-144494754","issue_url":"https://api.github.com/repos/segmentio/nightmare/issues/259","id":144494754,"user":{"login":"matthewmueller","id":170299,"avatar_url":"https://avatars.githubusercontent.com/u/170299?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewmueller","html_url":"https://github.com/matthewmueller","followers_url":"https://api.github.com/users/matthewmueller/followers","following_url":"https://api.github.com/users/matthewmueller/following{/other_user}","gists_url":"https://api.github.com/users/matthewmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewmueller/subscriptions","organizations_url":"https://api.github.com/users/matthewmueller/orgs","repos_url":"https://api.github.com/users/matthewmueller/repos","events_url":"https://api.github.com/users/matthewmueller/events{/privacy}","received_events_url":"https://api.github.com/users/matthewmueller/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T18:10:34Z","updated_at":"2015-09-30T18:10:34Z","body":"I think you'd have to yield on it:\r\n\r\n```js\r\nyield nightmare.end()\r\n```"}}