Skip to content

Commit

Permalink
One more little safeguard
Browse files Browse the repository at this point in the history
  • Loading branch information
mrb committed Jun 21, 2013
1 parent e5011d7 commit 8d6928c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pool.go
Expand Up @@ -51,6 +51,7 @@ func (pool *Pool) SelectNode() *Node {
go func(iNode *Node) {
nodeGood := iNode.Ping()
if nodeGood == false {
iNode.RecordError(100.0)
iNode.Lock()
iNode.Close()
iNode.Dial()
Expand Down

0 comments on commit 8d6928c

Please sign in to comment.