pika/pika — pull request #256 by atatsu (2013-01-16 02:50:29+00:00)
Title: Channel.close() fix when there are consumers

Channel.close was setting the channel state to CLOSING and then calling basic_cancel for all current consumers which does a check to make sure the channel is OPEN and if not raised a ChannelClosed exception. I removed the state change from Channel.close (as it happens in _shutdown which gets called at the end of the close method)

I believe this is what was causing issue #222