aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore
diff options
context:
space:
mode:
authorGravatar Greg Soltis <gsoltis@google.com>2018-02-13 16:02:53 -0800
committerGravatar GitHub <noreply@github.com>2018-02-13 16:02:53 -0800
commit0f3c24b22fb6f708c8c0b55321fd21be7b0b0bd2 (patch)
treeeccc9f70a9d982c464b63728e1fb167d637f8c88 /Firestore
parentfe19fca0e521e3765e4ecf6a87b0a3d622a52b92 (diff)
Actually ignore events on inactive streams, rather than just logging that we're going to. (#790)
Diffstat (limited to 'Firestore')
-rw-r--r--Firestore/Source/Remote/FSTStream.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Firestore/Source/Remote/FSTStream.mm b/Firestore/Source/Remote/FSTStream.mm
index e5cbf87..c1479c5 100644
--- a/Firestore/Source/Remote/FSTStream.mm
+++ b/Firestore/Source/Remote/FSTStream.mm
@@ -548,6 +548,7 @@ static const NSTimeInterval kIdleTimeout = 60.0;
FSTStrongify(self);
if (![self isStarted]) {
FSTLog(@"%@ Ignoring stream message from inactive stream.", NSStringFromClass([self class]));
+ return;
}
if (!self.messageReceived) {