Skip to content

Commit

Permalink
fix(api): AWSGraphQLSubscriptionTaskRunner failing to cancel AppSyncR…
Browse files Browse the repository at this point in the history
…ealTimeSubscription (#3615)
  • Loading branch information
almasios authored Apr 16, 2024
1 parent 4eecd94 commit f7488e3
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ public class AWSGraphQLSubscriptionTaskRunner<R: Decodable>: InternalTaskRunner,

public func cancel() {
self.send(GraphQLSubscriptionEvent<R>.connection(.disconnected))
Task { [weak self] in
guard let self else {
return
}
Task {
guard let appSyncClient = self.appSyncClient else {
return
}
Expand Down

0 comments on commit f7488e3

Please sign in to comment.