diff --git a/shadowsocks-csharp/View/LogForm.cs b/shadowsocks-csharp/View/LogForm.cs index f804f781..d0818454 100644 --- a/shadowsocks-csharp/View/LogForm.cs +++ b/shadowsocks-csharp/View/LogForm.cs @@ -76,7 +76,7 @@ namespace Shadowsocks.View try { - if (trafficChart.InvokeRequired) + if (trafficChart.InvokeRequired && trafficChart.IsHandleCreated) { trafficChart.Invoke(new Action(() => {