Skip to content

Commit

Permalink
Key press stops server.
Browse files Browse the repository at this point in the history
  • Loading branch information
vector-man committed Mar 5, 2014
1 parent 0c1b930 commit 2303f42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EchoTool/Modes/TcpServerMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void Run()
Console.WriteLine(string.Format(Messages.TCPServerCaption, serverPort));

echoServer.Start();
Console.ReadLine();
Console.ReadKey(true);
echoServer.Stop();
}

Expand Down
2 changes: 1 addition & 1 deletion EchoTool/Modes/UdpServerMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void Run()
Console.WriteLine(string.Format(Messages.UDPServerCaption, serverPort));

echoServer.Start();
Console.ReadLine();
Console.ReadKey(true);
echoServer.Stop();
}

Expand Down

0 comments on commit 2303f42

Please sign in to comment.