mirror of
https://github.com/Jackett/Jackett
synced 2024-12-23 08:17:25 +00:00
Fixed "cannot await in body of catch clause" warning
This commit is contained in:
parent
39db187c78
commit
3959fdc976
1 changed files with 3 additions and 3 deletions
|
@ -195,8 +195,8 @@ namespace Jackett.Indexers
|
|||
{
|
||||
logger.Error(string.Format("On attempt {0} downloading from {1}: {2}", (i + 1), DisplayName, e.Message));
|
||||
lastException = e;
|
||||
await Task.Delay(500);
|
||||
}
|
||||
await Task.Delay(500);
|
||||
}
|
||||
|
||||
throw lastException;
|
||||
|
@ -230,8 +230,8 @@ namespace Jackett.Indexers
|
|||
{
|
||||
logger.Error(string.Format("On attempt {0} checking for results from {1}: {2}", (i + 1), DisplayName, e.Message));
|
||||
lastException= e;
|
||||
await Task.Delay(500);
|
||||
}
|
||||
await Task.Delay(500);
|
||||
}
|
||||
|
||||
throw lastException;
|
||||
|
@ -276,8 +276,8 @@ namespace Jackett.Indexers
|
|||
{
|
||||
logger.Error(string.Format("On attempt {0} checking for results from {1}: {2}", (i + 1), DisplayName, e.Message));
|
||||
lastException = e;
|
||||
await Task.Delay(500);
|
||||
}
|
||||
await Task.Delay(500);
|
||||
}
|
||||
|
||||
throw lastException;
|
||||
|
|
Loading…
Reference in a new issue