File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ const {
4141} = primordials ;
4242
4343const EventEmitter = require ( 'events' ) ;
44+ const { addAbortListener } = require ( 'internal/events/abort_listener' ) ;
4445const stream = require ( 'stream' ) ;
4546let debug = require ( 'internal/util/debuglog' ) . debuglog ( 'net' , ( fn ) => {
4647 debug = fn ;
@@ -1631,7 +1632,7 @@ function addClientAbortSignalOption(self, options) {
16311632 process . nextTick ( onAbort ) ;
16321633 } else {
16331634 process . nextTick ( ( ) => {
1634- disposable = EventEmitter . addAbortListener ( signal , onAbort ) ;
1635+ disposable = addAbortListener ( signal , onAbort ) ;
16351636 } ) ;
16361637 }
16371638}
@@ -1723,7 +1724,7 @@ function addServerAbortSignalOption(self, options) {
17231724 if ( signal . aborted ) {
17241725 process . nextTick ( onAborted ) ;
17251726 } else {
1726- const disposable = EventEmitter . addAbortListener ( signal , onAborted ) ;
1727+ const disposable = addAbortListener ( signal , onAborted ) ;
17271728 self . once ( 'close' , disposable [ SymbolDispose ] ) ;
17281729 }
17291730}
You can’t perform that action at this time.
0 commit comments