Skip to content

Commit 8b200e1

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

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
@@ -161,6 +161,7 @@ export class OpenSeaClient {
161161
)
162162
}
163163

164+
await response.body?.cancel()
164165
await sleep(delayMs)
165166
continue
166167
}

0 commit comments

Comments
 (0)