mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
减少service不必要的循环
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user