fix: remove close after error and inject rid to invoke

pull/2522/head
adrieljss 4 months ago
parent 86ad81fb5b
commit 6a9dde50fa
No known key found for this signature in database
GPG Key ID: 849F13CBD0B4AD05

@ -193,7 +193,6 @@ export async function fetch(
// close early if aborted
if (signal?.aborted) {
controller.error(ERROR_REQUEST_CANCELLED)
controller.close()
return
}
@ -214,10 +213,10 @@ export async function fetch(
// run a non-blocking body stream fetch
invoke('plugin:http|fetch_stream_body', {
rid,
streamChannel
}).catch((e) => {
controller.error(e)
controller.close()
})
}
})

Loading…
Cancel
Save