Restore in case of error

This commit is contained in:
Zoltán Papp
2025-11-17 17:24:19 +01:00
parent fa6151b849
commit 2765bcfb89

View File

@@ -289,6 +289,8 @@ func (s *serviceClient) handleRunForDuration(
return
}
defer s.restoreServiceState(conn, initialState)
if err := s.collectDebugData(conn, initialState, params, progressUI); err != nil {
handleError(progressUI, err.Error())
return
@@ -299,8 +301,6 @@ func (s *serviceClient) handleRunForDuration(
return
}
s.restoreServiceState(conn, initialState)
progressUI.statusLabel.SetText("Bundle created successfully")
}