GODT-2008: Ensure user's addresses are returned in sorted order

This commit is contained in:
James Houlahan
2022-11-01 12:54:38 +01:00
parent a213b48f93
commit dbfb7572a8
2 changed files with 14 additions and 2 deletions

View File

@ -201,10 +201,14 @@ func run(c *cli.Context) error { //nolint:funlen
func withSingleInstance(locations *locations.Locations, version *semver.Version, fn func() error) error {
lock, err := checkSingleInstance(locations.GetLockFile(), version)
if err != nil {
logrus.Info("Another instance is already running; raising it")
if ok := focus.TryRaise(); !ok {
return fmt.Errorf("another instance is already running but it could not be raised")
}
logrus.Info("The other instance has been raised")
return nil
}