mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-04-22 15:17:08 +08:00
fix: race in trusttunnel read
This commit is contained in:
@@ -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