From 2376bddf43748f46f2f1fe36cc950583c6ddb1d3 Mon Sep 17 00:00:00 2001 From: Jeff Tung <100387939+jtung-apple@users.noreply.github.com> Date: Thu, 23 Jan 2025 21:22:54 -0800 Subject: [PATCH] [Darwin] On resubscribe attempt, if no need to subscribe, clear subsc ription work (#37177) --- src/darwin/Framework/CHIP/MTRDevice_Concrete.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/darwin/Framework/CHIP/MTRDevice_Concrete.mm b/src/darwin/Framework/CHIP/MTRDevice_Concrete.mm index e4937b2d64f990..cb92e52a1dac9f 100644 --- a/src/darwin/Framework/CHIP/MTRDevice_Concrete.mm +++ b/src/darwin/Framework/CHIP/MTRDevice_Concrete.mm @@ -1487,6 +1487,7 @@ - (void)_reattemptSubscriptionNowIfNeededWithReason:(NSString *)reason os_unfair_lock_assert_owner(&self->_lock); if (!self.reattemptingSubscription) { + [self _clearSubscriptionPoolWork]; return; }