Commit e18693e1 authored by wangjunqiang's avatar wangjunqiang

修复再Free过程中系统退出时的bug

parent bda0276b
......@@ -425,9 +425,13 @@ namespace GcDevicePc
private void WaitHMIFree()
{
this.workProgress.Visible = true;
this.workProgress.Value = 0;
this.backgroundWorker1.RunWorkerAsync();
if (!backgroundWorker1.IsBusy)
{
this.workProgress.Visible = true;
this.workProgress.Value = 0;
this.backgroundWorker1.RunWorkerAsync();
}
}
private void backgroundWorker2_DoWork(object sender, DoWorkEventArgs e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment