Skip to content

Commit

Permalink
Fix issue where service started by check is terminated by query. Closes
Browse files Browse the repository at this point in the history
  • Loading branch information
binaek authored May 20, 2021
1 parent 74a74cd commit 5ae454b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ func EnsureDbAndStartService(invoker Invoker) error {
return errors.New("could not retrieve service status")
}

if status != nil && status.Invoker == invoker {
return fmt.Errorf("You already have a %s session open. To run multiple sessions, first run %s.\nTo kill existing sessions run %s", constants.Bold(fmt.Sprintf("steampipe %s", invoker)), constants.Bold("steampipe service start"), constants.Bold("steampipe service stop --force"))
if status != nil && status.Invoker != InvokerService {
return fmt.Errorf("You already have a %s session open. To run multiple sessions, first run %s.\nTo kill existing sessions run %s", constants.Bold(fmt.Sprintf("steampipe %s", status.Invoker)), constants.Bold("steampipe service start"), constants.Bold("steampipe service stop --force"))
}

if status == nil {
Expand Down

0 comments on commit 5ae454b

Please sign in to comment.