{"action":"closed","issue":{"url":"https://api.github.com/repos/austinv11/Discord4J/issues/162","repository_url":"https://api.github.com/repos/austinv11/Discord4J","labels_url":"https://api.github.com/repos/austinv11/Discord4J/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/austinv11/Discord4J/issues/162/comments","events_url":"https://api.github.com/repos/austinv11/Discord4J/issues/162/events","html_url":"https://github.com/austinv11/Discord4J/issues/162","id":192982869,"number":162,"title":"Reconnecting is brutal on the CPU","user":{"login":"darkhax","id":2250798,"avatar_url":"https://avatars.githubusercontent.com/u/2250798?v=3","gravatar_id":"","url":"https://api.github.com/users/darkhax","html_url":"https://github.com/darkhax","followers_url":"https://api.github.com/users/darkhax/followers","following_url":"https://api.github.com/users/darkhax/following{/other_user}","gists_url":"https://api.github.com/users/darkhax/gists{/gist_id}","starred_url":"https://api.github.com/users/darkhax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkhax/subscriptions","organizations_url":"https://api.github.com/users/darkhax/orgs","repos_url":"https://api.github.com/users/darkhax/repos","events_url":"https://api.github.com/users/darkhax/events{/privacy}","received_events_url":"https://api.github.com/users/darkhax/received_events","type":"User","site_admin":false},"labels":[{"id":383161126,"url":"https://api.github.com/repos/austinv11/Discord4J/labels/fixed","name":"fixed","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/austinv11/Discord4J/milestones/3","html_url":"https://github.com/austinv11/Discord4J/milestone/3","labels_url":"https://api.github.com/repos/austinv11/Discord4J/milestones/3/labels","id":1992417,"number":3,"title":"2.7","description":"","creator":{"login":"austinv11","id":6373756,"avatar_url":"https://avatars.githubusercontent.com/u/6373756?v=3","gravatar_id":"","url":"https://api.github.com/users/austinv11","html_url":"https://github.com/austinv11","followers_url":"https://api.github.com/users/austinv11/followers","following_url":"https://api.github.com/users/austinv11/following{/other_user}","gists_url":"https://api.github.com/users/austinv11/gists{/gist_id}","starred_url":"https://api.github.com/users/austinv11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austinv11/subscriptions","organizations_url":"https://api.github.com/users/austinv11/orgs","repos_url":"https://api.github.com/users/austinv11/repos","events_url":"https://api.github.com/users/austinv11/events{/privacy}","received_events_url":"https://api.github.com/users/austinv11/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":3,"state":"open","created_at":"2016-09-09T01:18:34Z","updated_at":"2016-12-21T05:43:56Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-12-01T22:40:19Z","updated_at":"2016-12-21T05:43:56Z","closed_at":"2016-12-21T05:43:56Z","body":"### Prerequisites\r\n* [x] If this is a question/suggestion, I have already considered talking about it on the [Discord4J server](https://discord.gg/NxGAeCY)\r\n* [x] This issue specifically has something to do with Discord4J\r\n* [x] I have attempted to [look for similar issues](https://github.com/austinv11/Discord4J/issues?utf8=%E2%9C%93&q=is%3Aissue)\r\nalready\r\n\r\n### Description\r\nRecently noticed that when my bot was trying to reconnect, it's CPU usage went up significantly. Almost maxed out my i7-6700hq. \r\n\r\n### Steps to Reproduce\r\n1. Turn a bot,\r\n2. Do something to disconnect it from Discord's servers. In my case it was closing the lid on a laptop, which put the PC to sleep.\r\n3. Monitor CPU usage for increased usage. **NOTE** Due to the performance impact of a high CPU usage program, it may be best to have whatever you use to monitor opened up first.\r\n\r\n...\r\n\r\n**Expected behavior:**\r\nReconnection attempt would be made without causing large increase in CPU usage.\r\n\r\n**Actual behavior:**\r\nThe CPU usage went up drastically, and the console spammed many exceptions. \r\n\r\n**Stacktrace (if applicable):**\r\nhttps://gist.github.com/darkhax/9a730ddaa17bc2fd069c3f3fe5758555\r\n\r\n**Version affected:**\r\n2.6.1\r\n\r\n### Additional Information\r\nIn this situation, my bot does not have any additional code for handling reconnection. Bot source can be found [here](https://github.com/darkhax/Euclid). I have had issues reproducing the issue since first experiencing it, however I definitely have been able to reproduce it. \r\n"}}
{"actor":{"display_login":"GrandPanda"}}