Skip to content

Commit 1c045f7

Browse files
fix(client): avoid removing abort listener too early
1 parent a4d7151 commit 1c045f7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/client.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,6 @@ export class OpenAI {
796796
return await this.fetch.call(undefined, url, fetchOptions);
797797
} finally {
798798
clearTimeout(timeout);
799-
if (signal) signal.removeEventListener('abort', abort);
800799
}
801800
}
802801

0 commit comments

Comments
 (0)