File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ const DEFAULT_IPV6_ADDR = '::';
152152const noop = ( ) => { } ;
153153
154154const kPerfHooksNetConnectContext = Symbol ( 'kPerfHooksNetConnectContext' ) ;
155+ const kDestroyingOnFinish = Symbol ( 'kDestroyingOnFinish' ) ;
155156
156157const dc = require ( 'diagnostics_channel' ) ;
157158const netClientSocketChannel = dc . channel ( 'net.client.socket' ) ;
@@ -795,17 +796,17 @@ function onReadableStreamEnd() {
795796
796797
797798Socket . prototype . destroySoon = function ( ) {
798- if ( this . destroyingOnFinish ) return ;
799+ if ( this [ kDestroyingOnFinish ] ) return ;
799800
800801 if ( this . writable )
801802 this . end ( ) ;
802803
803804 if ( this . writableFinished )
804805 this . destroy ( ) ;
805806 else {
806- this . destroyingOnFinish = true ;
807+ this [ kDestroyingOnFinish ] = true ;
807808 this . once ( 'finish' , ( ) => {
808- this . destroyingOnFinish = false ;
809+ this [ kDestroyingOnFinish ] = false ;
809810 this . destroy ( ) ;
810811 } ) ;
811812 }
You can’t perform that action at this time.
0 commit comments