SEBWIN-226: Immediately invoke ConnectionLost when a proxy faults.

This commit is contained in:
dbuechel 2019-01-23 09:58:17 +01:00
parent c6556a7765
commit 652a9a7e36

View file

@ -215,6 +215,8 @@ namespace SafeExamBrowser.Communication.Proxies
private void BaseProxy_Faulted(object sender, EventArgs e) private void BaseProxy_Faulted(object sender, EventArgs e)
{ {
Logger.Warn("Communication channel has faulted!"); Logger.Warn("Communication channel has faulted!");
timer?.Stop();
ConnectionLost?.Invoke();
} }
private void BaseProxy_Opened(object sender, EventArgs e) private void BaseProxy_Opened(object sender, EventArgs e)