From 17b1e310ce5c3743c95ec70d3fb2bab3f0720e5a Mon Sep 17 00:00:00 2001 From: Samuel Onoja Date: Thu, 10 Oct 2024 09:50:08 +0100 Subject: [PATCH] fix disconnect bug --- pairing_api/src/pairing.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pairing_api/src/pairing.rs b/pairing_api/src/pairing.rs index 2bf1868..d67d023 100644 --- a/pairing_api/src/pairing.rs +++ b/pairing_api/src/pairing.rs @@ -303,7 +303,12 @@ impl PairingClient { }; } - self.delete(topic, client).await?; + { + client + .unsubscribe(topic.into()) + .await + .map_err(PairingClientError::SubscriptionError)?; + }; Ok(()) }