From 5d136abce2e18449a56953c33f8b1d09365e79ca Mon Sep 17 00:00:00 2001 From: RavMorgan <48182970+RavMorgan@users.noreply.github.com> Date: Sun, 30 Apr 2023 05:29:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BE=D1=88=D0=B8?= =?UTF-8?q?=D0=B1=D0=BE=D0=BA=20=D1=81=D0=BE=D0=BA=D0=B5=D1=82=D0=BE=D0=B2?= =?UTF-8?q?=20(#8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Mona Hmiza <> --- Content.Server/UtkaIntegration/TCP/UtkaTCPWrapper.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Server/UtkaIntegration/TCP/UtkaTCPWrapper.cs b/Content.Server/UtkaIntegration/TCP/UtkaTCPWrapper.cs index 56e3ec8f59..f41e2f5499 100644 --- a/Content.Server/UtkaIntegration/TCP/UtkaTCPWrapper.cs +++ b/Content.Server/UtkaIntegration/TCP/UtkaTCPWrapper.cs @@ -32,16 +32,16 @@ public sealed class UtkaTCPWrapper try { _server = new UtkaTCPServer(IPAddress.Any, port); + _server.Start(); + _initialized = true; } catch (Exception e) { + _initialized = false; return; } - _server.Start(); - - _initialized = true; } public void SendMessageToAll(UtkaBaseMessage message)