Skip to content

Commit

Permalink
use 'GoClose' in conns accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
whyrusleeping committed Dec 3, 2015
1 parent ff5f68c commit 6f52ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (s *Swarm) Conns() []*Conn {
open := make([]*Conn, 0, len(conns))
for _, c := range conns {
if c.smuxConn.IsClosed() {
c.Close()
c.GoClose()
} else {
open = append(open, c)
}
Expand Down

0 comments on commit 6f52ef1

Please sign in to comment.