mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-01-06 01:37:12 +01:00
pidfile.Write() can fail if no pid file was configured, it's ok
This commit is contained in:
parent
7991b91f21
commit
49460f1d6f
@ -126,9 +126,7 @@ func (app *App) AppMain() {
|
||||
}
|
||||
app.quit = make(chan struct{})
|
||||
app.wg.Add(1)
|
||||
if err := pidfile.Write(); err != nil {
|
||||
dlog.Critical(err)
|
||||
}
|
||||
_ = pidfile.Write()
|
||||
app.proxy.StartProxy()
|
||||
<-app.quit
|
||||
dlog.Notice("Quit signal received...")
|
||||
|
Loading…
Reference in New Issue
Block a user