1
0
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:
Gerson Alexander Pardo Gamez
2017-10-19 22:06:31 -05:00
parent dcde9d05a2
commit 732c9f70ed
2 changed files with 8 additions and 10 deletions

View File

@@ -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()