Browse Source

修复进入工厂模式失败时,计数不停止的问题。

JeffWang 2 years ago
parent
commit
bdeed4a3d0
1 changed files with 3 additions and 2 deletions
  1. 3 2
      FactoryTool_CShare/Views/OperationPanel.cs

+ 3 - 2
FactoryTool_CShare/Views/OperationPanel.cs

@@ -1696,7 +1696,7 @@ namespace MOKA_Factory_Tools
                 catch (Exception ex)
                 {
                     MessageBox.Show(ex.Message);
-                    return;
+                    goto stop;
                 }
             }
             for (int i = 0; i <= FunctionSettingNow.EnterFactoryRetry; i++)
@@ -1716,7 +1716,7 @@ namespace MOKA_Factory_Tools
                 ErrMsg = string.Format("{0} Enter factory fail, Please check the problem", SN);
                 Log.WriteErrorLog(ErrMsg);
                 ShowVerifyDelegate(ErrMsg);
-                return;
+                goto stop;
             }
 
             //烧录SN
@@ -5180,6 +5180,7 @@ namespace MOKA_Factory_Tools
             {
                 GetLocalKeysCount();
             }
+        stop:
             timer1.Stop();
             usingTime = 0;
             EnableText(SNText);