Skip to content

Commit

Permalink
Merge pull request firebase#657 from firebase/mikelehen/closeWithFina…
Browse files Browse the repository at this point in the history
…lState-cherry-pick

Remove over-aggressive closeWithFinalState: delegate assert.
  • Loading branch information
bstpierr authored Jan 12, 2018
2 parents e90b55d + 7f3cbd8 commit 456a013
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Firestore/Source/Remote/FSTStream.m
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,6 @@ - (void)tearDown {
- (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];
Expand Down

0 comments on commit 456a013

Please sign in to comment.