Fixed error in retry mechanism for SEB server.
This commit is contained in:
parent
0720698874
commit
0f72ac7bc4
1 changed files with 1 additions and 1 deletions
|
@ -468,7 +468,7 @@ namespace SafeExamBrowser.Server
|
|||
{
|
||||
response = default(HttpResponseMessage);
|
||||
|
||||
for (var attempt = 0; attempt < settings.RequestAttempts && response == default(HttpResponseMessage); attempt++)
|
||||
for (var attempt = 0; attempt < settings.RequestAttempts && (response == default(HttpResponseMessage) || !response.IsSuccessStatusCode); attempt++)
|
||||
{
|
||||
var request = new HttpRequestMessage(method, url);
|
||||
|
||||
|
|
Loading…
Reference in a new issue