Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 589ac0f

Browse files
authored
Don't recycle QUIC agent. (#1111)
QUIC agent works similar as portal, listens on a specific port.
1 parent a1c270f commit 589ac0f

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

source/agent/conference/quicController.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff 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 => {

0 commit comments

Comments
 (0)