|
@@ -84,9 +84,20 @@ namespace Vinno.FIS.Sonopost.Features.AfterSales
|
|
|
SetPushPatchProcess(0.85);
|
|
|
SetPushPatchProcess(0.95);
|
|
|
SetPushPatchProcess(1);
|
|
|
- ForceDisconnect();
|
|
|
- AppManager.Instance.GetManager<IOledManager>().ShowStatus(OledMessage.Upgrading);
|
|
|
- UpgradeHelper.StartUpgrade(_patchFile, true);
|
|
|
+ try
|
|
|
+ {
|
|
|
+ ForceDisconnect();
|
|
|
+ AppManager.Instance.GetManager<ILoginManager>().Logoff();
|
|
|
+ }
|
|
|
+ catch (Exception ex)
|
|
|
+ {
|
|
|
+ Logger.WriteLineError($"AfterSalesManager PatchTask LogOff Error:{ex}");
|
|
|
+ }
|
|
|
+ finally
|
|
|
+ {
|
|
|
+ AppManager.Instance.GetManager<IOledManager>().ShowStatus(OledMessage.Upgrading);
|
|
|
+ UpgradeHelper.StartUpgrade(_patchFile, true);
|
|
|
+ }
|
|
|
}
|
|
|
else
|
|
|
{
|