Skip to content

Commit 7274276

Browse files
authored
Merge pull request #380 from Ubiguchi/sample-peer-count
Fix Server Usage Sample to use ConnectedPeerCount
2 parents 3f14439 + 64d7fe3 commit 7274276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ server.Start(9050 /* port */);
8989

9090
listener.ConnectionRequestEvent += request =>
9191
{
92-
if(server.PeersCount < 10 /* max connections */)
92+
if(server.ConnectedPeersCount < 10 /* max connections */)
9393
request.AcceptIfKey("SomeConnectionKey");
9494
else
9595
request.Reject();

0 commit comments

Comments
 (0)