Permalink
Browse files

Next() method returned wrong value (it ignored blacklist).

  • Loading branch information...
pawel-kaplanski
pawel-kaplanski committed Sep 3, 2012
1 parent 1f05d2f commit 6b8cfa97272657a78d3564e38299329b23603cd5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Connections/RoundRobinServerManager.cs
@@ -28,7 +28,7 @@ private bool IsBlackListed(Server server)
public bool HasNext
{
- get { lock (_lock) { return _serverQueue.Count > 0; } }
+ get { lock (_lock) { return (_serverQueue.Count - _blackListed.Count) > 0; } }
}
public Server Next()

0 comments on commit 6b8cfa9

Please sign in to comment.