mirror of
https://github.com/Jackett/Jackett
synced 2024-12-23 16:27:44 +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));
|
logger.Error(string.Format("On attempt {0} downloading from {1}: {2}", (i + 1), DisplayName, e.Message));
|
||||||
lastException = e;
|
lastException = e;
|
||||||
await Task.Delay(500);
|
|
||||||
}
|
}
|
||||||
|
await Task.Delay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw lastException;
|
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));
|
logger.Error(string.Format("On attempt {0} checking for results from {1}: {2}", (i + 1), DisplayName, e.Message));
|
||||||
lastException= e;
|
lastException= e;
|
||||||
await Task.Delay(500);
|
|
||||||
}
|
}
|
||||||
|
await Task.Delay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw lastException;
|
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));
|
logger.Error(string.Format("On attempt {0} checking for results from {1}: {2}", (i + 1), DisplayName, e.Message));
|
||||||
lastException = e;
|
lastException = e;
|
||||||
await Task.Delay(500);
|
|
||||||
}
|
}
|
||||||
|
await Task.Delay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw lastException;
|
throw lastException;
|
||||||
|
|
Loading…
Reference in a new issue