1
0
mirror of https://github.com/fumiama/water.git synced 2026-06-05 02:00:29 +08:00
This commit is contained in:
fumiama
2021-12-31 17:21:56 +08:00
parent 38601da6d1
commit 6d316045a9

View File

@@ -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 {