mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-01 07:46:50 +00:00
fix: race in trusttunnel read
This commit is contained in:
1 parent
299fd33795
commit
d4b3d236da
1 file changed
-3
@@ -112,9 +112,6 @@ func (h *httpConn) setUp(body io.ReadCloser, err error) {
|
||||
}
|
||||
|
||||
func (h *httpConn) waitCreated() error {
|
||||
if h.body != nil || h.createErr != nil {
|
||||
return h.createErr
|
||||
}
|
||||
<-h.created
|
||||
return h.createErr
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user