Skip to content

Commit

Permalink
fix: wc broken state if pairing fails
Browse files Browse the repository at this point in the history
  • Loading branch information
isordo committed Sep 29, 2023
1 parent 6a58e42 commit 8e14b18
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/beacon-dapp/src/dapp-client/DAppClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,11 @@ export class DAppClient extends Client {
this.destroy()
}

async destroy(): Promise<void> {
(await this.transport).disconnect()
await super.destroy()
}

public async init(transport?: Transport<any>): Promise<TransportType> {
if (this._initPromise) {
return this._initPromise
Expand Down

0 comments on commit 8e14b18

Please sign in to comment.