mirror of https://github.com/cbeuw/Cloak
Rearrange if statement
This commit is contained in:
parent
369f3c781c
commit
ae3f97df1e
|
|
@ -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,9 +98,9 @@ func (d *datagramBuffer) WriteTo(w io.Writer) (n int64, err error) {
|
|||
return n, er
|
||||
}
|
||||
d.rwCond.Broadcast()
|
||||
continue
|
||||
} else {
|
||||
d.rwCond.Wait()
|
||||
}
|
||||
d.rwCond.Wait()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue