Skip to content

Commit 988e9fd

Browse files
fix: cancel response body on retryable errors to prevent resource leak
Co-Authored-By: Chris K <ckorhonen@gmail.com>
1 parent ae2e887 commit 988e9fd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ export class OpenSeaClient {
148148
)
149149
}
150150

151+
await response.body?.cancel()
151152
await sleep(delayMs)
152153
continue
153154
}

0 commit comments

Comments
 (0)