diff --git a/examples/Telnet.Server/TelnetServerHandler.cs b/examples/Telnet.Server/TelnetServerHandler.cs index ea4c3a935..8e7020b4c 100644 --- a/examples/Telnet.Server/TelnetServerHandler.cs +++ b/examples/Telnet.Server/TelnetServerHandler.cs @@ -36,10 +36,10 @@ protected override async void ChannelRead0(IChannelHandlerContext contex, string response = "Did you say '" + msg + "'?\r\n"; } - ValueTask wait_close = contex.WriteAndFlushAsync(response); + ValueTask waitClose = contex.WriteAndFlushAsync(response); if (close) { - await wait_close; + await waitClose; contex.CloseAsync(); } }