From 6d316045a9f55ef534e67862c512bd8d9403d62c Mon Sep 17 00:00:00 2001 From: fumiama Date: Fri, 31 Dec 2021 17:21:56 +0800 Subject: [PATCH] rm lock --- syscalls_windows.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/syscalls_windows.go b/syscalls_windows.go index 1739780..c93ca86 100644 --- a/syscalls_windows.go +++ b/syscalls_windows.go @@ -290,7 +290,6 @@ type wintunRWC struct { ad wintun.Adapter s wintun.Session readwait windows.Handle - readmu sync.Mutex readbuf []byte isclosed bool } @@ -318,9 +317,6 @@ func (w *wintunRWC) Write(b []byte) (int, error) { } func (w *wintunRWC) Read(b []byte) (int, error) { - w.readmu.Lock() - defer w.readmu.Unlock() - n := 0 if w.readbuf != nil {