This rewrites the websocket channel network change detection function to not skip part of its logic in a situation that has already been checked, preventing a thread race. See analysis of the problem in the issue.
Another S&R run with some smarter matching.
Tag #288