mirror of
https://github.com/syumai/workers.git
synced 2025-03-10 17:29:11 +00:00
fix streamReader to call cancel instead of close
This commit is contained in:
parent
94329a47e1
commit
449cac3e91
@ -74,7 +74,7 @@ func (sr *readableStreamToReadCloser) Close() error {
|
|||||||
if sr.streamReader == nil {
|
if sr.streamReader == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
sr.streamReader.Call("close")
|
sr.streamReader.Call("cancel")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user