Skip to content

Commit

Permalink
Kill process instead of sending command
Browse files Browse the repository at this point in the history
  • Loading branch information
BaerMitUmlaut committed Oct 10, 2018
1 parent 16c9d76 commit 89e0d78
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions interfacer/src/browsh/firefox.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
var (
marionette net.Conn
ffCommandCount = 0
pid = -1
pid = -1
defaultFFPrefs = map[string]string{
"startup.homepage_welcome_url.additional": "''",
"devtools.errorconsole.enabled": "true",
Expand Down Expand Up @@ -306,5 +306,8 @@ func startFirefox() {
}

func quitFirefox() {
sendFirefoxCommand("quitApplication", map[string]interface{}{})
process, err := os.FindProcess(pid)
if err == nil {
process.Kill()
}
}

0 comments on commit 89e0d78

Please sign in to comment.