aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore
diff options
context:
space:
mode:
authorGravatar Michael Lehenbauer <mikelehen@google.com>2018-01-11 16:20:19 -0800
committerGravatar Michael Lehenbauer <mikelehen@google.com>2018-01-11 16:53:58 -0800
commitc9f91e35ed8f291bb4aaf959569abc82d021f257 (patch)
treec6465f56669aae845e0d4ea9d71ce001eb7a3f02 /Firestore
parent551f5b2ff9986cf33358287e2cf9126b57c23c43 (diff)
Remove over-aggressive assert.
closeWithFinalState: assumes delegate != nil, but that is not true if when startWithdelegate: was called we entered backoff (performBackoffWithDelegate:) and so self.delegate did not get assigned yet. We could rework the code to make the assertion hold, but per offline discussion this assert doesn't represent an invariant that we care about and so I'm just removing it.
Diffstat (limited to 'Firestore')
-rw-r--r--Firestore/Source/Remote/FSTStream.m3
1 files changed, 0 insertions, 3 deletions
diff --git a/Firestore/Source/Remote/FSTStream.m b/Firestore/Source/Remote/FSTStream.m
index 5719ec8..dc7d01e 100644
--- a/Firestore/Source/Remote/FSTStream.m
+++ b/Firestore/Source/Remote/FSTStream.m
@@ -343,9 +343,6 @@ static const NSTimeInterval kIdleTimeout = 60.0;
- (void)closeWithFinalState:(FSTStreamState)finalState error:(nullable NSError *)error {
FSTAssert(finalState == FSTStreamStateError || error == nil,
@"Can't provide an error when not in an error state.");
- FSTAssert(self.delegate,
- @"closeWithFinalState should only be called for a started stream that has an active "
- @"delegate.");
[self.workerDispatchQueue verifyIsCurrentQueue];
[self cancelIdleCheck];