{"action":"opened","issue":{"url":"https://api.github.com/repos/probonopd/WirelessPrinting/issues/50","repository_url":"https://api.github.com/repos/probonopd/WirelessPrinting","labels_url":"https://api.github.com/repos/probonopd/WirelessPrinting/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/probonopd/WirelessPrinting/issues/50/comments","events_url":"https://api.github.com/repos/probonopd/WirelessPrinting/issues/50/events","html_url":"https://github.com/probonopd/WirelessPrinting/issues/50","id":395092251,"node_id":"MDU6SXNzdWUzOTUwOTIyNTE=","number":50,"title":"[Question] What happens when print is aborted?","user":{"login":"GMagician","id":3684609,"node_id":"MDQ6VXNlcjM2ODQ2MDk=","avatar_url":"https://avatars0.githubusercontent.com/u/3684609?v=4","gravatar_id":"","url":"https://api.github.com/users/GMagician","html_url":"https://github.com/GMagician","followers_url":"https://api.github.com/users/GMagician/followers","following_url":"https://api.github.com/users/GMagician/following{/other_user}","gists_url":"https://api.github.com/users/GMagician/gists{/gist_id}","starred_url":"https://api.github.com/users/GMagician/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GMagician/subscriptions","organizations_url":"https://api.github.com/users/GMagician/orgs","repos_url":"https://api.github.com/users/GMagician/repos","events_url":"https://api.github.com/users/GMagician/events{/privacy}","received_events_url":"https://api.github.com/users/GMagician/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-01-01T15:30:33Z","updated_at":"2019-01-01T15:30:33Z","closed_at":null,"author_association":"NONE","body":"I'm trying to learn code and I find something that I don't understand, when printer is aborted.\r\n\r\nYour code looks like:\r\n```c++\r\n        if(shouldCancelPrint == true){\r\n          shouldCancelPrint == false;\r\n          isPrinting = false;\r\n          return;\r\n        }\r\n```\r\n\r\nreturn exit from function and so `gcodeFile.close()` and `statusTimer.attach(statusInterval, askPrinterForStatus)` are never called. Where do these things are restore?\r\n"}}
{"actor":{"display_login":"GMagician"}}