Skip to content

Commit

Permalink
fixed error 'occurs in user-defined function, use of closed network c…
Browse files Browse the repository at this point in the history
…onnection'
  • Loading branch information
PotatoCloud committed Oct 12, 2023
1 parent 537adb8 commit 18a4e0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func (s *Server) OnTraffic(c gnet.Conn) gnet.Action {
})
upgraderConn.UpdateActive()
case ws.OpClose:
_ = s.closeWS(upgraderConn, ws.StatusNormalClosure, nil)
s.onCloseHandler(upgraderConn, nil)
return gnet.Close
}

Expand Down

0 comments on commit 18a4e0e

Please sign in to comment.