Fix error when closing inactive channel
Merge pull request #274 from badosu/fix-error-when-parting-inactive

Fix error when closing inactive channel