File tree 1 file changed +3
-2
lines changed
FirebaseRemoteConfig/Sources
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -688,16 +688,17 @@ - (FIRConfigUpdateListenerRegistration *)addConfigUpdateListener:
688
688
if (listener == nil ) {
689
689
return nil ;
690
690
}
691
+ __block id listenerCopy = listener;
691
692
692
693
__weak RCNConfigRealtime *weakSelf = self;
693
694
dispatch_async (_realtimeLockQueue, ^{
694
695
__strong RCNConfigRealtime *strongSelf = weakSelf;
695
- [strongSelf->_listeners addObject: listener ];
696
+ [strongSelf->_listeners addObject: listenerCopy ];
696
697
[strongSelf beginRealtimeStream ];
697
698
});
698
699
699
700
return [[FIRConfigUpdateListenerRegistration alloc ] initWithClient: self
700
- completionHandler: listener ];
701
+ completionHandler: listenerCopy ];
701
702
}
702
703
703
704
- (void )removeConfigUpdateListener : (void (^_Nonnull)(FIRRemoteConfigUpdate *configUpdate,
You can’t perform that action at this time.
0 commit comments