{"action":"closed","issue":{"url":"https://api.github.com/repos/planktos-xyz/planktos/issues/18","repository_url":"https://api.github.com/repos/planktos-xyz/planktos","labels_url":"https://api.github.com/repos/planktos-xyz/planktos/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/planktos-xyz/planktos/issues/18/comments","events_url":"https://api.github.com/repos/planktos-xyz/planktos/issues/18/events","html_url":"https://github.com/planktos-xyz/planktos/issues/18","id":159736958,"number":18,"title":"Disconnected peers aren't being cleaned up","user":{"login":"xuset","id":4952039,"avatar_url":"https://avatars.githubusercontent.com/u/4952039?v=3","gravatar_id":"","url":"https://api.github.com/users/xuset","html_url":"https://github.com/xuset","followers_url":"https://api.github.com/users/xuset/followers","following_url":"https://api.github.com/users/xuset/following{/other_user}","gists_url":"https://api.github.com/users/xuset/gists{/gist_id}","starred_url":"https://api.github.com/users/xuset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuset/subscriptions","organizations_url":"https://api.github.com/users/xuset/orgs","repos_url":"https://api.github.com/users/xuset/repos","events_url":"https://api.github.com/users/xuset/events{/privacy}","received_events_url":"https://api.github.com/users/xuset/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/planktos-xyz/planktos/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-10T22:42:03Z","updated_at":"2016-06-19T23:38:11Z","closed_at":"2016-06-19T23:38:11Z","body":"A peer disconnected, and the disconnect event was fired but some part of the code still held a reference to the peer. When a message was sent to the disconnected peer a TypeError occurred because once a peer disconnects some of it's resources are nulled out.\r\n\r\nThe part of the code that is keeping it's reference to a disconnected peer should be fixed so it's reference is removed upon disconnect\r\n```\r\nTypeError: Cannot read property 'send' of null\r\n    at Peer.send\r\n    at WrtcChannel.sendMessage\r\n    at Peer.pushBlocks\r\n    at Client.pushBlock\r\n```"}}
{"actor":{"display_login":"xuset"}}