Replace check on unassigned var with NSURLErrorCancelled

This commit is contained in:
Doug
2022-08-01 12:35:50 +01:00
parent 718c56ffaf
commit 12b336e0ae

View File

@@ -299,7 +299,7 @@ static NSString *const kNSFWKeyword = @"nsfw";
{
typeof(self) self = weakSelf;
if (!newPublicRoomsRequest || newPublicRoomsRequest.isCancelled)
if (error.domain == NSURLErrorDomain && error.code == NSURLErrorCancelled)
{
// Do not take into account error coming from a cancellation
return;