From 652a9a7e36155045ff904e940feee4601c30da98 Mon Sep 17 00:00:00 2001 From: dbuechel Date: Wed, 23 Jan 2019 09:58:17 +0100 Subject: [PATCH] SEBWIN-226: Immediately invoke ConnectionLost when a proxy faults. --- SafeExamBrowser.Communication/Proxies/BaseProxy.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SafeExamBrowser.Communication/Proxies/BaseProxy.cs b/SafeExamBrowser.Communication/Proxies/BaseProxy.cs index 6601d4b4..0347d698 100644 --- a/SafeExamBrowser.Communication/Proxies/BaseProxy.cs +++ b/SafeExamBrowser.Communication/Proxies/BaseProxy.cs @@ -215,6 +215,8 @@ namespace SafeExamBrowser.Communication.Proxies private void BaseProxy_Faulted(object sender, EventArgs e) { Logger.Warn("Communication channel has faulted!"); + timer?.Stop(); + ConnectionLost?.Invoke(); } private void BaseProxy_Opened(object sender, EventArgs e)