void updateHelper_PipeServerDisconnected(object sender, UpdateHelperData e)
{
// wyUpdate should only ever exit after success or failure
// otherwise it is a premature exit (and needs to be treated as an error)
if (UpdateStepOn == UpdateStepOn.Checking
|| UpdateStepOn == UpdateStepOn.DownloadingUpdate
|| UpdateStepOn == UpdateStepOn.ExtractingUpdate
|| e.UpdateStep == UpdateStep.RestartInfo)
{
if (e.UpdateStep == UpdateStep.RestartInfo)
{
if (ClosingAborted != null)
ClosingAborted(this, EventArgs.Empty);
ClosingForInstall = false;
}
// wyUpdate premature exit error
UpdateStepFailed(UpdateStepOn, new FailArgs { wyUpdatePrematureExit = true, ErrorTitle = e.ExtraData[0], ErrorMessage = e.ExtraData[1] });
}
}