mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Fixed "cannot await in body of catch clause" warning
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user