Skip to content

Commit 89d8233

Browse files
ylc395sindresorhus
andauthored
Update index.js
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
1 parent ddec04b commit 89d8233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ export default class Emittery {
300300
options?.signal?.removeEventListener('abort', off);
301301
};
302302

303-
options?.signal?.addEventListener('abort', off);
303+
options?.signal?.addEventListener('abort', off, {once: true});
304304

305305
if (options?.signal?.aborted) {
306306
off();

0 commit comments

Comments
 (0)