Skip to content

Commit

Permalink
Merge pull request #1149 from WalletConnect/hotfix/watch-checkcancell…
Browse files Browse the repository at this point in the history
…ation

[Notify] Check cancellation after build subscriptions
  • Loading branch information
flypaper0 authored Oct 3, 2023
2 parents 512bf8d + a29a507 commit a6638e8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ class NotifyWatchSubscriptionsResponseSubscriber {
let oldSubscriptions = notifyStorage.getSubscriptions()
let newSubscriptions = try await notifySubscriptionsBuilder.buildSubscriptions(responsePayload.subscriptions)

try Task.checkCancellation()

logger.debug("number of subscriptions: \(newSubscriptions.count)")

guard newSubscriptions != oldSubscriptions else {return}
Expand Down

0 comments on commit a6638e8

Please sign in to comment.