From 7d8f71500c74c8b856661dab3a8c44cb60552423 Mon Sep 17 00:00:00 2001 From: Plague Fox Date: Sat, 29 Jul 2023 00:09:18 +0400 Subject: [PATCH] Cancel refresh timer --- lib/src/subscription/client_subscription_impl.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/subscription/client_subscription_impl.dart b/lib/src/subscription/client_subscription_impl.dart index 3d5fa9f..7d92247 100644 --- a/lib/src/subscription/client_subscription_impl.dart +++ b/lib/src/subscription/client_subscription_impl.dart @@ -326,6 +326,8 @@ base mixin CentrifugeClientSubscriptionSubscribeMixin @override Future close() async { logger.fine('Closing subscription to $channel'); + _refreshTimer?.cancel(); + _refreshTimer = null; await super.close(); await _transport.close(); }