This repository was archived by the owner on Oct 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,6 @@ class QuicController extends EventEmitter {
158158
159159 // Return Promise
160160 terminate ( sessionId , direction , reason ) {
161- console . trace ( ) ;
162161 log . debug ( `terminate, sessionId: ${ sessionId } direction: ${ direction } , ${ reason } ` ) ;
163162
164163 if ( ! this . operations . has ( sessionId ) ) {
@@ -180,25 +179,6 @@ class QuicController extends EventEmitter {
180179 const abortData = { direction : operation . direction , owner, reason } ;
181180 this . emit ( 'session-aborted' , sessionId , abortData ) ;
182181 this . operations . delete ( sessionId ) ;
183-
184- let emptyTransport = true ;
185- for ( const [ id , op ] of this . operations ) {
186- if ( op . transportId === transport . id ) {
187- emptyTransport = false ;
188- break ;
189- }
190- }
191- if ( emptyTransport ) {
192- log . debug ( `to recycleWorkerNode: ${ locality } task:, ${ sessionId } ` ) ;
193- const taskConfig = { room : this . roomId , task : sessionId } ;
194- return this . rpcReq . recycleWorkerNode ( locality . agent , locality . node , taskConfig )
195- . catch ( reason => {
196- log . debug ( `AccessNode not recycled ${ locality } , ${ reason } ` ) ;
197- } )
198- . then ( ( ) => {
199- this . transports . delete ( transport . id ) ;
200- } ) ;
201- }
202182 }
203183 } )
204184 . catch ( reason => {
You can’t perform that action at this time.
0 commit comments