Merge pull request #56 from github/tcp-nil-fix

fixed nil TCP listener when TCP undfined
This commit is contained in:
Shlomi Noach 2016-06-07 14:24:57 +02:00 committed by GitHub
commit 72e09fc3c7

View File

@ -70,6 +70,9 @@ func (this *Server) Serve() (err error) {
}
}()
go func() {
if this.tcpListener == nil {
return
}
for {
conn, err := this.tcpListener.Accept()
if err != nil {