mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-06 22:57:37 +03:00
make sure tcp/udp Conn are closed on stop signal
This commit is contained in:
parent
220d418f2f
commit
6680faf665
7 changed files with 69 additions and 46 deletions
|
@ -111,8 +111,7 @@ func (app *App) Stop(service service.Service) error {
|
|||
|
||||
func (app *App) appMain() {
|
||||
pidfile.Write()
|
||||
app.proxy.StartProxy()
|
||||
<-app.quit
|
||||
app.proxy.StartProxy(app.quit)
|
||||
app.wg.Done()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue