Check whether form handle been created(#650)
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
This commit is contained in:
@@ -76,7 +76,7 @@ namespace Shadowsocks.View
|
||||
|
||||
try
|
||||
{
|
||||
if (trafficChart.InvokeRequired)
|
||||
if (trafficChart.InvokeRequired && trafficChart.IsHandleCreated)
|
||||
{
|
||||
trafficChart.Invoke(new Action(() =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user