bc2f1fb7 by Francois

Update app.go

1 parent 8ed45951
Showing 1 changed file with 5 additions and 1 deletions
......@@ -62,10 +62,14 @@ func (app *App) Run() {
BeeLogger.Critical("ResolveTCPAddr:", err)
}
l, err = GetInitListener(laddr)
if err == nil {
theStoppable = newStoppable(l)
err = server.Serve(theStoppable)
if err == nil {
theStoppable.wg.Wait()
CloseSelf()
err = CloseSelf()
}
}
} else {
s := &http.Server{
Addr: addr,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!