{"action":"reopened","issue":{"url":"https://api.github.com/repos/PufferPanel/PufferPanel/issues/512","labels_url":"https://api.github.com/repos/PufferPanel/PufferPanel/issues/512/labels{/name}","comments_url":"https://api.github.com/repos/PufferPanel/PufferPanel/issues/512/comments","events_url":"https://api.github.com/repos/PufferPanel/PufferPanel/issues/512/events","html_url":"https://github.com/PufferPanel/PufferPanel/issues/512","id":71196342,"number":512,"title":"GSD crashes when 'autoon' is enabled","user":{"login":"RunasSudo","id":1272264,"avatar_url":"https://avatars.githubusercontent.com/u/1272264?v=3","gravatar_id":"","url":"https://api.github.com/users/RunasSudo","html_url":"https://github.com/RunasSudo","followers_url":"https://api.github.com/users/RunasSudo/followers","following_url":"https://api.github.com/users/RunasSudo/following{/other_user}","gists_url":"https://api.github.com/users/RunasSudo/gists{/gist_id}","starred_url":"https://api.github.com/users/RunasSudo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RunasSudo/subscriptions","organizations_url":"https://api.github.com/users/RunasSudo/orgs","repos_url":"https://api.github.com/users/RunasSudo/repos","events_url":"https://api.github.com/users/RunasSudo/events{/privacy}","received_events_url":"https://api.github.com/users/RunasSudo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-27T06:56:24Z","updated_at":"2015-04-29T20:53:47Z","closed_at":null,"body":"See [Google web cache of gametainers/GSD issue 35](http://webcache.googleusercontent.com/search?q=cache:https://github.com/gametainers/gsd/issues/35)\r\n\r\nUsing GSD 0.1.4\r\n\r\n\"When autoon is set to true, startup crashes with this stack\r\n\r\n```\r\nTypeError: undefined is not a function\r\nat GameServer.turnon (/srv/gsd/services/gameprocess.js:149:2)\r\nat initServer (/srv/gsd/services/index.js:16:18)\r\nat data (/srv/gsd/services/index.js:6:2)\r\nat Array.forEach (native)\r\nat Object. (/srv/gsd/services/index.js:5:29)\r\nat Module._compile (module.js:456:26)\r\nat Object.Module._extensions..js (module.js:474:10)\r\nat Module.load (module.js:356:32)\r\nat Function.Module._load (module.js:312:12)\r\nat Module.require (module.js:364:17)\r\n```\r\n\r\nWhich makes sense because initServer calls turnon with no arguments and that function expects a callback.\"\r\n\r\n\"Hi\r\n\r\nI have same problem, I solved this by editing the file `/srv/gsd/services/gameprocess.js`\r\nand added // in front of the line 147 from to disable the line\r\n`// callback();`\r\n\r\nnow the autoon function works :-)\r\nhowever I dont know if this gives any other problemes, but currently I have not seen any.\"\r\n\r\n\"It's probably safer to modify the services/index.js and change turnon() to turnon(function () {})\""}}