Skip to content

Commit 64d7fe3

Browse files
committed
Fix Server Usage Sample to use ConnectedPeerCount
1 parent 3f14439 commit 64d7fe3

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)