Skip to content

Commit

Permalink
bug fix on TCPServer Close
Browse files Browse the repository at this point in the history
  • Loading branch information
name5566 committed Oct 18, 2015
1 parent ba06beb commit 80ef9b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/tcp_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (server *TCPServer) Close() {
for conn := range server.conns {
conn.Close()
}
server.conns = nil
server.conns = make(ConnSet)
server.mutexConns.Unlock()
server.wgConns.Wait()
}

0 comments on commit 80ef9b5

Please sign in to comment.