I've added Dan's patch, but I'm not sure if a race condition may occur. Should connectionLost acquire channelsLock?
I've added Dan's patch, but I'm not sure if a race condition may occur. Should connectionLost acquire channelsLock?