Skip to content

Commit 2376bdd

Browse files
authored
[Darwin] On resubscribe attempt, if no need to subscribe, clear subsc ription work (project-chip#37177)
1 parent 8ec0731 commit 2376bdd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/darwin/Framework/CHIP/MTRDevice_Concrete.mm

+1
Original file line numberDiff line numberDiff line change
@@ -1487,6 +1487,7 @@ - (void)_reattemptSubscriptionNowIfNeededWithReason:(NSString *)reason
14871487

14881488
os_unfair_lock_assert_owner(&self->_lock);
14891489
if (!self.reattemptingSubscription) {
1490+
[self _clearSubscriptionPoolWork];
14901491
return;
14911492
}
14921493

0 commit comments

Comments
 (0)