From 0f72ac7bc4927d0ebf506e4e2d58ef1ed135e7fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Mon, 26 Apr 2021 12:27:54 +0200 Subject: [PATCH] Fixed error in retry mechanism for SEB server. --- SafeExamBrowser.Server/ServerProxy.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SafeExamBrowser.Server/ServerProxy.cs b/SafeExamBrowser.Server/ServerProxy.cs index afae8e45..9c0a0748 100644 --- a/SafeExamBrowser.Server/ServerProxy.cs +++ b/SafeExamBrowser.Server/ServerProxy.cs @@ -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);