Skip to content

Commit

Permalink
Merge pull request #200 from astasovsky/fix/199
Browse files Browse the repository at this point in the history
fix: SignClient disposing when duplicate WalletConnectModal deletion occurs
  • Loading branch information
skibitsky authored Apr 8, 2024
2 parents 9f977c1 + feff1ca commit 4708717
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ private void OnSessionErrored(object sender, Exception e)

private void OnDestroy()
{
SignClient?.Dispose();
if (Instance == this)
{
SignClient?.Dispose();
}
}
}

Expand Down

0 comments on commit 4708717

Please sign in to comment.