Skip to content

Commit

Permalink
windaemon fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyzimmer committed Nov 6, 2023
1 parent 74da111 commit 0bdb5c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/webmeshd/main_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ func (d *helperDaemon) Execute(args []string, r <-chan svc.ChangeRequest, change

flagset := pflag.NewFlagSet("webmeshd", pflag.ContinueOnError)
config := daemoncmd.NewDefaultConfig().BindFlags("daemon.", flagset)
err = flagset.Parse(args)
err = flagset.Parse(args[1:])
if err != nil {
logError("Failed to parse service arguments", err)
return false, 1
return
}

var wg sync.WaitGroup
Expand All @@ -101,7 +101,7 @@ EventLoop:
select {
case err := <-errs:
logError("Daemon exited with error", err)
return false, 1
return
case c := <-r:
switch c.Cmd {
case svc.Interrogate:
Expand Down

0 comments on commit 0bdb5c2

Please sign in to comment.