{"action":"created","issue":{"url":"https://api.github.com/repos/alanxz/SimpleAmqpClient/issues/115","labels_url":"https://api.github.com/repos/alanxz/SimpleAmqpClient/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/alanxz/SimpleAmqpClient/issues/115/comments","events_url":"https://api.github.com/repos/alanxz/SimpleAmqpClient/issues/115/events","html_url":"https://github.com/alanxz/SimpleAmqpClient/pull/115","id":112227119,"number":115,"title":"fix: several call on BasicConsume, always get the same channel","user":{"login":"xlqian","id":6093486,"avatar_url":"https://avatars.githubusercontent.com/u/6093486?v=3","gravatar_id":"","url":"https://api.github.com/users/xlqian","html_url":"https://github.com/xlqian","followers_url":"https://api.github.com/users/xlqian/followers","following_url":"https://api.github.com/users/xlqian/following{/other_user}","gists_url":"https://api.github.com/users/xlqian/gists{/gist_id}","starred_url":"https://api.github.com/users/xlqian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xlqian/subscriptions","organizations_url":"https://api.github.com/users/xlqian/orgs","repos_url":"https://api.github.com/users/xlqian/repos","events_url":"https://api.github.com/users/xlqian/events{/privacy}","received_events_url":"https://api.github.com/users/xlqian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-19T20:33:24Z","updated_at":"2015-10-21T04:11:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/alanxz/SimpleAmqpClient/pulls/115","html_url":"https://github.com/alanxz/SimpleAmqpClient/pull/115","diff_url":"https://github.com/alanxz/SimpleAmqpClient/pull/115.diff","patch_url":"https://github.com/alanxz/SimpleAmqpClient/pull/115.patch"},"body":"```c++\r\n std::string tag_toto = this->channel->BasicConsume(queue_toto, \"\", no_local, no_ack); // <- OK\r\n std::string tag_titi = this->channel->BasicConsume(queue_titi, \"\", no_local, no_ack); // <- OK\r\n std::string tag_tata = this->channel->BasicConsume(queue_tata, \"\", no_local, no_ack); // <- KO\r\n std::string tag_tete = this->channel->BasicConsume(queue_tete, \"\", no_local, no_ack); // <- KO\r\n```\r\n\r\nAfter several call on BasicConsume, `Channel::GetChannel()` returns always the same channel.\r\n\r\nThis is because after calling `ChannelImpl::CreateNewChannel()`, the new channel is not registered as it should be.\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.png\" height=40 alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/alanxz/simpleamqpclient/115)\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/alanxz/SimpleAmqpClient/issues/comments/149776159","html_url":"https://github.com/alanxz/SimpleAmqpClient/pull/115#issuecomment-149776159","issue_url":"https://api.github.com/repos/alanxz/SimpleAmqpClient/issues/115","id":149776159,"user":{"login":"alanxz","id":439940,"avatar_url":"https://avatars.githubusercontent.com/u/439940?v=3","gravatar_id":"","url":"https://api.github.com/users/alanxz","html_url":"https://github.com/alanxz","followers_url":"https://api.github.com/users/alanxz/followers","following_url":"https://api.github.com/users/alanxz/following{/other_user}","gists_url":"https://api.github.com/users/alanxz/gists{/gist_id}","starred_url":"https://api.github.com/users/alanxz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanxz/subscriptions","organizations_url":"https://api.github.com/users/alanxz/orgs","repos_url":"https://api.github.com/users/alanxz/repos","events_url":"https://api.github.com/users/alanxz/events{/privacy}","received_events_url":"https://api.github.com/users/alanxz/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T04:11:02Z","updated_at":"2015-10-21T04:11:02Z","body":"LGTM\n<!-- Reviewable comment -K17_vNNXs_5qLSgyoej:676834233 -->\n\n---\n\nReviewed 1 of 1 files at r3.\nReview status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.\n\n---\n\n\n\nComments from the [review on Reviewable.io](https://reviewable.io:443/reviews/alanxz/simpleamqpclient/115)\n<!-- Sent from Reviewable.io -->\n"}}