Skip to content

Commit

Permalink
fix: wait for all subscription to cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmannZ committed May 20, 2019
1 parent 4d9a6d6 commit 4681923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graphql/lib/src/core/observable_query.dart
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class ObservableQuery {
}

for (StreamSubscription<QueryResult> subscription in _onDataSubscriptions) {
subscription.cancel();
await subscription.cancel();
}

stopPolling();
Expand Down

0 comments on commit 4681923

Please # to comment.