{"action":"opened","issue":{"url":"https://api.github.com/repos/Valbrand/tibei/issues/2","repository_url":"https://api.github.com/repos/Valbrand/tibei","labels_url":"https://api.github.com/repos/Valbrand/tibei/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Valbrand/tibei/issues/2/comments","events_url":"https://api.github.com/repos/Valbrand/tibei/issues/2/events","html_url":"https://github.com/Valbrand/tibei/issues/2","id":201081293,"number":2,"title":"Mensagem não processada no ViewController","user":{"login":"eltonfs","id":22280044,"avatar_url":"https://avatars.githubusercontent.com/u/22280044?v=3","gravatar_id":"","url":"https://api.github.com/users/eltonfs","html_url":"https://github.com/eltonfs","followers_url":"https://api.github.com/users/eltonfs/followers","following_url":"https://api.github.com/users/eltonfs/following{/other_user}","gists_url":"https://api.github.com/users/eltonfs/gists{/gist_id}","starred_url":"https://api.github.com/users/eltonfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eltonfs/subscriptions","organizations_url":"https://api.github.com/users/eltonfs/orgs","repos_url":"https://api.github.com/users/eltonfs/repos","events_url":"https://api.github.com/users/eltonfs/events{/privacy}","received_events_url":"https://api.github.com/users/eltonfs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-16T17:40:10Z","updated_at":"2017-01-16T17:40:10Z","closed_at":null,"body":"Vossa Santidade,\r\n\r\nEntão, quando dou `registerResponder` varias vezes sem dar `unregister` chegam varias mensagens no meu view controller, ainda que o tibei só da print em um payload.\r\n\r\nMinhas telas estão organizadas assim, o fluxo se divide para abrir um serviço ou se conectar a um ja existente.\r\n\r\n![screen shot 2017-01-16 at 14 05 14](https://cloud.githubusercontent.com/assets/22280044/21992765/7d8391bc-dbf6-11e6-8ae2-75b3c31bb79e.png)\r\n\r\nAntes de sair eu dou `unregister` no view controller anterior, nos dois casos (server e client).\r\n\r\n![screen shot 2017-01-16 at 14 39 04](https://cloud.githubusercontent.com/assets/22280044/21993439/9aab30a8-dbf9-11e6-87e5-8f69abcee8e1.png)\r\n\r\nE assim que chego no view controller de PrepareToPlay que é algo onde server e client passam eu dou `register` novamente.\r\n\r\n![screen shot 2017-01-16 at 14 37 29](https://cloud.githubusercontent.com/assets/22280044/21993395/64a57bbc-dbf9-11e6-9574-1a5a7e319c05.png)\r\n\r\n\r\nAgora o Tibei recebe o payload, mas o VC não processa.\r\n\r\n![screen shot 2017-01-16 at 14 11 54](https://cloud.githubusercontent.com/assets/22280044/21993153/2d5f50ac-dbf8-11e6-960a-495723ba06e3.png)\r\n\r\nO que observei é que quando não dou `unregister` e dou `register` em todos os VC, todos eles processam mensagens e, em alguns casos, processam mais do que deveria. Quando dou `unregister`, no VC seguinte é como não conseguisse dar mais `register`. Já que o payload chega mas o VC não processa.\r\n\r\n"}}
{"actor":{"display_login":"eltonfs"}}