Merge pull request #56 from github/tcp-nil-fix
fixed nil TCP listener when TCP undfined
This commit is contained in:
commit
72e09fc3c7
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user