Skip to content

Commit f7488e3

Browse files
authored
fix(api): AWSGraphQLSubscriptionTaskRunner failing to cancel AppSyncRealTimeSubscription (#3615)
1 parent 4eecd94 commit f7488e3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

AmplifyPlugins/API/Sources/AWSAPIPlugin/Operation/AWSGraphQLSubscriptionTaskRunner.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ public class AWSGraphQLSubscriptionTaskRunner<R: Decodable>: InternalTaskRunner,
4646

4747
public func cancel() {
4848
self.send(GraphQLSubscriptionEvent<R>.connection(.disconnected))
49-
Task { [weak self] in
50-
guard let self else {
51-
return
52-
}
49+
Task {
5350
guard let appSyncClient = self.appSyncClient else {
5451
return
5552
}

0 commit comments

Comments
 (0)