The websocket hub, on stopping, closes all associated websocket connections, and each connection
in turn tries to unregister itself with the hub, but this naturally creates a deadlock.

This PR reverts the line commented (incorretly...) at
https://github.com/mattermost/mattermost-server/pull/9863/files#r235583929.
Этот коммит содержится в:
Jesse Hallam
2019-01-09 13:14:09 -05:00
коммит произвёл Christopher Speller
родитель df076b457a
Коммит fa6f7f3a62

Просмотреть файл

@@ -359,7 +359,7 @@ func (h *Hub) Register(webConn *WebConn) {
func (h *Hub) Unregister(webConn *WebConn) {
select {
case h.unregister <- webConn:
case <-h.didStop:
case <-h.stop:
}
}