diff --git a/packages/beacon-dapp/src/dapp-client/DAppClient.ts b/packages/beacon-dapp/src/dapp-client/DAppClient.ts index 5ff2160e0..4474339f4 100644 --- a/packages/beacon-dapp/src/dapp-client/DAppClient.ts +++ b/packages/beacon-dapp/src/dapp-client/DAppClient.ts @@ -500,7 +500,7 @@ export class DAppClient extends Client { this.handleResponse(message.data.message, message.data.connectionInfo) break case 'DISCONNECT': - this.disconnect() + this._transport.isResolved() && this.disconnect() break default: logger.error('onBCMessageHandler', 'message type not recognized', message)