diff --git a/socket/net/client/connector.go b/socket/net/client/connector.go index 7d0fbfd..d8b0b96 100644 --- a/socket/net/client/connector.go +++ b/socket/net/client/connector.go @@ -88,9 +88,6 @@ func (c *Connectors) logHeader() string { } func (c *Connectors) onDisconnected() { - close(c.readChan) - close(c.writeChan) - c.reconnectedChan <- nil onDisconnected := c.OnDisconnected diff --git a/socket/web/client/connector.go b/socket/web/client/connector.go index edadcf1..6739426 100644 --- a/socket/web/client/connector.go +++ b/socket/web/client/connector.go @@ -125,9 +125,6 @@ func (c *Connectors) logHeader() string { } func (c *Connectors) onDisconnected() { - close(c.readChan) - close(c.writeChan) - c.reconnectedChan <- nil onDisconnected := c.OnDisconnected