Skip to content

Commit

Permalink
fix: shadow read
Browse files Browse the repository at this point in the history
  • Loading branch information
isordo committed Dec 21, 2023
1 parent 40f4670 commit ad7f07f
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,19 +474,21 @@ export class WalletConnectCommunicationClient extends CommunicationClient {
listener(pairingResponse)
})
})
.catch((error: any) => {
.catch(async (error: any) => {
logger.error(error.message)
if (!signClient.core.pairing.getPairings().find((p) => p.topic === topic)) {

if (!(await this.storage.hasPairings())) {
return
}

console.log('noup.')

signClient.core.pairing.disconnect({ topic }).catch((error) => logger.warn(error.message))

if (error instanceof InvalidSession) {
return
}


const fun = this.eventHandlers.get(ClientEvents.CLOSE_ALERT)
fun && fun()
})
Expand Down

0 comments on commit ad7f07f

Please sign in to comment.