Skip to content

Commit cda1c0e

Browse files
joyeecheunglpinca
andauthored
fixup! debugger: fix event listener leak in the run command
Co-authored-by: Luigi Pinca <luigipinca@gmail.com>
1 parent 5ff338f commit cda1c0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/debugger/inspect_client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ class Client extends EventEmitter {
356356
tearDown();
357357
resolve();
358358
};
359-
this.once('error', onError);
360-
this.once('ready', onReady);
359+
this.on('error', onError);
360+
this.on('ready', onReady);
361361

362362
httpReq.on('upgrade', handshakeListener);
363363
httpReq.end();

0 commit comments

Comments
 (0)