1
0
mirror of https://github.com/astaxie/beego.git synced 2025-09-04 15:40:34 +00:00

Merge pull request #83 from shxsun/master

In go version 1.0.3 will call build error
This commit is contained in:
astaxie
2013-06-25 07:08:35 -07:00

View File

@@ -137,7 +137,7 @@ func GetInitListner(tcpaddr *net.TCPAddr) (l net.Listener, err error) {
countStr := os.Getenv(FDKey) countStr := os.Getenv(FDKey)
if countStr == "" { if countStr == "" {
return net.ListenTCP("tcp", tcpaddr) return net.ListenTCP("tcp", tcpaddr)
} else { }
count, err := strconv.Atoi(countStr) count, err := strconv.Atoi(countStr)
if err != nil { if err != nil {
return nil, err return nil, err
@@ -149,4 +149,3 @@ func GetInitListner(tcpaddr *net.TCPAddr) (l net.Listener, err error) {
} }
return l, nil return l, nil
} }
}