cockpit-project/cockpit — pull request #1607 by mvollmer (2014-12-16 11:25:51+00:00)
Title: ws: Only process a "close" message after forwarding it.

Otherwise, the forwarding will fail because the channel has already
been removed from the knowledge of cockpit-ws.

XXX - this was done in a hurry, and there are still messages like

cockpit-ws[32211]: channel 1:7 does not exist

in the log.

XXX - a unit test would be nice.