File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
src/Microsoft.AspNetCore.NodeServices/TypeScript/VirtualConnections Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -105,15 +105,16 @@ class VirtualConnectionsCollection {
105105 }
106106 } ;
107107
108- const newVirtualConnection = new VirtualConnection ( beginWriteCallback )
109- . on ( 'end' , ( ) => {
110- // The virtual connection was closed remotely. Clean up locally.
111- this . _onVirtualConnectionWasClosed ( header . connectionIdString ) ;
112- } ) . on ( 'finish' , ( ) => {
113- // The virtual connection was closed locally. Clean up locally, and notify the remote that we're done.
114- this . _onVirtualConnectionWasClosed ( header . connectionIdString ) ;
115- this . _sendFrame ( header . connectionIdBinary , new Buffer ( 0 ) ) ;
116- } ) ;
108+ const newVirtualConnection = new VirtualConnection ( beginWriteCallback ) ;
109+ newVirtualConnection . on ( 'end' , ( ) => {
110+ // The virtual connection was closed remotely. Clean up locally.
111+ this . _onVirtualConnectionWasClosed ( header . connectionIdString ) ;
112+ } ) ;
113+ newVirtualConnection . on ( 'finish' , ( ) => {
114+ // The virtual connection was closed locally. Clean up locally, and notify the remote that we're done.
115+ this . _onVirtualConnectionWasClosed ( header . connectionIdString ) ;
116+ this . _sendFrame ( header . connectionIdBinary , new Buffer ( 0 ) ) ;
117+ } ) ;
117118
118119 this . _virtualConnections [ header . connectionIdString ] = newVirtualConnection ;
119120 this . _onVirtualConnectionCallback ( newVirtualConnection ) ;
You can’t perform that action at this time.
0 commit comments