Fixed "cannot await in body of catch clause" warning

This commit is contained in:
unknown 2015-08-02 15:10:51 -06:00
parent 39db187c78
commit 3959fdc976
1 changed files with 3 additions and 3 deletions

View File

@ -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;