Skip to content

Commit

Permalink
gpg: check for exit code to make sure process was killed, fix #15
Browse files Browse the repository at this point in the history
  • Loading branch information
maximbaz committed Jul 30, 2020
1 parent 97dc109 commit 7b294ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions detector/gpg.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ func isGPGCardBusy() bool {
cmd.Process.Kill()
})

err := cmd.Wait()
cmd.Wait()
timer.Stop()

return err != nil
return cmd.ProcessState.ExitCode() == -1
}

0 comments on commit 7b294ed

Please sign in to comment.