Closed leth closed 8 years ago
Ah this trips up the tests, it would be good to get some feedback on this change if it's changing behavior :)
Hello,
Since the channel is normaly created from the protocol, I think the protocol class should keep the control of its deletion ?
That's what my change does. Currently closed channels are never deleted, they are only deleted when the channel ID is re-used and they are overwritten.
Also I think currently, a channel's connection_close
callback will be called twice, once when the channel closes, and another time when the protocol closes.
However if the channel ID was reused, it will only be called the first time.
Closing in favor of #88
This means we avoid calling 'channel.connection_closed' on already closed channels.