mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-27 14:59:09 +01:00
Restore in case of error
This commit is contained in:
+2
-2
@@ -289,6 +289,8 @@ func (s *serviceClient) handleRunForDuration(
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
defer s.restoreServiceState(conn, initialState)
|
||||||
|
|
||||||
if err := s.collectDebugData(conn, initialState, params, progressUI); err != nil {
|
if err := s.collectDebugData(conn, initialState, params, progressUI); err != nil {
|
||||||
handleError(progressUI, err.Error())
|
handleError(progressUI, err.Error())
|
||||||
return
|
return
|
||||||
@@ -299,8 +301,6 @@ func (s *serviceClient) handleRunForDuration(
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
s.restoreServiceState(conn, initialState)
|
|
||||||
|
|
||||||
progressUI.statusLabel.SetText("Bundle created successfully")
|
progressUI.statusLabel.SetText("Bundle created successfully")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user