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; }