Fix: Second call fails

The callController exists after a first call fails due to busy. It is
not sufficient to check for it's existence.

// FREEBIE
This commit is contained in:
Michael Kirk 2017-02-03 12:56:25 -05:00
parent 091052185b
commit c4a677a0bc

View file

@ -139,7 +139,11 @@
- (BOOL)hasOngoingCall
{
return self.curCallController != nil;
if (!self.curCallController) {
return NO;
}
return [self.curCallController callState].futureTermination.isIncomplete;
}
- (CallController *)curCallController {