mirror of https://github.com/cbeuw/Cloak
Revert "Fix WriteTo receive loop"
This reverts commit 501f7dda
Address #117
This commit is contained in:
parent
aed624a87b
commit
ff10cbf67b
|
|
@ -92,8 +92,9 @@ func (p *bufferedPipe) WriteTo(w io.Writer) (n int64, err error) {
|
|||
return n, er
|
||||
}
|
||||
p.rwCond.Broadcast()
|
||||
} else {
|
||||
p.rwCond.Wait()
|
||||
}
|
||||
p.rwCond.Wait()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -98,8 +98,9 @@ func (d *datagramBuffer) WriteTo(w io.Writer) (n int64, err error) {
|
|||
return n, er
|
||||
}
|
||||
d.rwCond.Broadcast()
|
||||
} else {
|
||||
d.rwCond.Wait()
|
||||
}
|
||||
d.rwCond.Wait()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue