Skip to content

Commit 7eee83d

Browse files
committed
Do not throw when session is closing
1 parent 206ca2d commit 7eee83d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/protocol/src/protocol/ExchangeManager.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,8 @@ export class ExchangeManager {
277277
} else {
278278
if (this.#isClosing) return;
279279
if (session.isClosing) {
280-
throw new MatterFlowError(
281-
`Declining new exchange because session ${Session.idStrOf(packet)} is closing`,
282-
);
280+
logger.debug(`Declining new exchange because session ${Session.idStrOf(packet)} is closing`);
281+
return;
283282
}
284283

285284
const protocolHandler = this.#protocols.get(message.payloadHeader.protocolId);

0 commit comments

Comments
 (0)