mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
Websocket: replaced time.Ticker with sleep for avoid memory leak
Former-commit-id: f17706649faebe3020792e31de877c724be41057
This commit is contained in:
@@ -378,8 +378,6 @@ func (s *Server) Disconnect(connID string) (err error) {
|
||||
if c, ok := s.connections.remove(connID); ok {
|
||||
if !c.disconnected {
|
||||
c.disconnected = true
|
||||
// stop the ping timer
|
||||
c.pinger.Stop()
|
||||
|
||||
// fire the disconnect callbacks, if any
|
||||
c.fireDisconnect()
|
||||
|
||||
Reference in New Issue
Block a user