File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -516,7 +516,7 @@ - (void)handleStreamMessage:(id)value {
516
516
- (void )handleStreamClose : (nullable NSError *)error {
517
517
FSTLog (@" %@ %p close: %@ " , NSStringFromClass ([self class ]), (__bridge void *)self, error);
518
518
519
- if (![self isStarted ]) { // The stream could have already been closed by the idle close timer.
519
+ if (![self isStarted ]) { // The stream could have already been closed by the idle close timer.
520
520
FSTLog (@" %@ Ignoring server close for already closed stream." , NSStringFromClass ([self class ]));
521
521
return ;
522
522
}
@@ -542,9 +542,10 @@ - (void)writeValue:(id)value __used {
542
542
FSTWeakify (self);
543
543
[self .workerDispatchQueue dispatchAsync: ^{
544
544
FSTStrongify (self);
545
- if (!self || self. state == FSTStreamStateStopped ) {
546
- return ;
545
+ if (!self || ![ self isStarted ] ) {
546
+ FSTLog ( @" %@ Ignoring stream message from inactive stream. " , NSStringFromClass ([ self class ])) ;
547
547
}
548
+
548
549
if (!self.messageReceived ) {
549
550
self.messageReceived = YES ;
550
551
if ([FIRFirestore isLoggingEnabled ]) {
You can’t perform that action at this time.
0 commit comments