From d71ae0388932a3c1e0d080bd645ca35b107985d7 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 19 Apr 2019 14:24:42 +0200 Subject: [PATCH] Refresh --- TestClient/MainForm.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/TestClient/MainForm.cs b/TestClient/MainForm.cs index a43f6fe..b539520 100644 --- a/TestClient/MainForm.cs +++ b/TestClient/MainForm.cs @@ -100,11 +100,15 @@ namespace TestClient return; } - synchronizationContext.Post(new SendOrPostCallback(o => + try { - lblClock.Text = timeNow.ToString("ddd dd.MM.yyyy HH:mm:ss"); - }), ""); - + synchronizationContext.Post(new SendOrPostCallback(o => + { + lblClock.Text = timeNow.ToString("ddd dd.MM.yyyy HH:mm:ss"); + }), ""); + } + catch + { } previousTime = timeNow; }