Skip to content

Commit

Permalink
Cancel refresh timer
Browse files Browse the repository at this point in the history
  • Loading branch information
PlugFox committed Jul 28, 2023
1 parent 19d4b86 commit 7d8f715
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/subscription/client_subscription_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ base mixin CentrifugeClientSubscriptionSubscribeMixin
@override
Future<void> close() async {
logger.fine('Closing subscription to $channel');
_refreshTimer?.cancel();
_refreshTimer = null;
await super.close();
await _transport.close();
}
Expand Down

0 comments on commit 7d8f715

Please sign in to comment.