Skip to content

Commit

Permalink
Adding websocket locking in lameDuckMode() too.
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
  • Loading branch information
kozlovic committed May 8, 2024
1 parent 968451a commit 5df83a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/server.go
Expand Up @@ -4138,8 +4138,10 @@ func (s *Server) lameDuckMode() {
if s.websocket.server != nil {
expected++
s.websocket.server.Close()
s.websocket.mu.Lock()
s.websocket.server = nil
s.websocket.listener = nil
s.websocket.mu.Unlock()
}
s.ldmCh = make(chan bool, expected)
opts := s.getOpts()
Expand Down

0 comments on commit 5df83a1

Please sign in to comment.