diff --git a/transport/wireguard/client_bind.go b/transport/wireguard/client_bind.go index 91a30f24..570b2831 100644 --- a/transport/wireguard/client_bind.go +++ b/transport/wireguard/client_bind.go @@ -100,14 +100,10 @@ func (c *ClientBind) receive(b []byte) (n int, ep conn.Endpoint, err error) { } func (c *ClientBind) Reset() { - c.connAccess.Lock() - defer c.connAccess.Unlock() common.Close(common.PtrOrNil(c.conn)) } func (c *ClientBind) Close() error { - c.connAccess.Lock() - defer c.connAccess.Unlock() common.Close(common.PtrOrNil(c.conn)) if c.done == nil { c.done = make(chan struct{})