good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 493ebbe9 authored by Anmol Sethi's avatar Anmol Sethi Committed by GitHub
Browse files

netconn.go: Prevent timer leakage (#255)

Closes #243
parent 15a15233
No related branches found
No related tags found
No related merge requests found
......@@ -106,6 +106,8 @@ type netConn struct {
var _ net.Conn = &netConn{}
func (nc *netConn) Close() error {
nc.writeTimer.Stop()
nc.readTimer.Stop()
return nc.c.Close(StatusNormalClosure, "")
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment