Skip to content

Commit 2157bc1

Browse files
authored
Fixed wrong check in TcpListener.Stop() (#25)
1 parent 3135fcd commit 2157bc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nanoframework.System.Net.Sockets.TcpClient/Sockets/TcpListener.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void Start(int backlog)
7575
/// </summary>
7676
public void Stop()
7777
{
78-
if (Active)
78+
if (!Active)
7979
{
8080
throw new InvalidOperationException();
8181
}

0 commit comments

Comments
 (0)