From 254cc5e11ceeb90b6309243c34fd834fc5dc7481 Mon Sep 17 00:00:00 2001 From: Yegres546 <126583849+Yegres546@users.noreply.github.com> Date: Wed, 26 Nov 2025 00:50:45 +0200 Subject: [PATCH] Make '_cancellationTokenSource' 'readonly'. Program.cs --- EchoTcpServer/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EchoTcpServer/Program.cs b/EchoTcpServer/Program.cs index 5966c579..036f1c4c 100644 --- a/EchoTcpServer/Program.cs +++ b/EchoTcpServer/Program.cs @@ -13,7 +13,7 @@ public class EchoServer { private readonly int _port; private TcpListener _listener; - private CancellationTokenSource _cancellationTokenSource; + private readonly CancellationTokenSource _cancellationTokenSource; public EchoServer(int port) @@ -170,4 +170,4 @@ public void Dispose() StopSending(); _udpClient.Dispose(); } -} \ No newline at end of file +}