Skip to content

Commit

Permalink
fix: multiple disconnections
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaccoSordo committed Jun 19, 2024
1 parent 7aadc36 commit 5e66b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/beacon-dapp/src/dapp-client/DAppClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5e66b4c

Please sign in to comment.