Skip to content

Commit

Permalink
Try to forceReconnect on 404 when joining call
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Müller <[email protected]>
  • Loading branch information
SystemKeeper committed Aug 22, 2024
1 parent 80433f9 commit 8e6f179
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion NextcloudTalk/NCCallController.m
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,13 @@ - (void)joinCall
if (self->_joinCallAttempts < 3) {
NSLog(@"Could not join call, retrying. %ld", (long)self->_joinCallAttempts);
self->_joinCallAttempts += 1;
[self joinCall];

if (statusCode == 404) {
[self forceReconnect];
} else {
[self joinCall];
}

return;
}

Expand Down

0 comments on commit 8e6f179

Please sign in to comment.