减少service不必要的循环

This commit is contained in:
boyce
2019-01-30 14:55:40 +08:00
parent 34002c31a0
commit 91364a7cd8
5 changed files with 13 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ package network
import (
"fmt"
"net/http"
"os"
"time"
)
@@ -45,6 +46,7 @@ func (slf *HttpServer) startListen() error {
err := slf.httpserver.ListenAndServe()
if err != nil {
fmt.Printf("http.ListenAndServe(%d, nil) error\n", slf.port)
os.Exit(1)
}
return nil