This commit is contained in:
2025-04-06 17:17:15 +03:00
parent fd2318cbf6
commit da7f5a8404
7 changed files with 233 additions and 28 deletions

View File

@ -41,9 +41,7 @@ namespace DroneSimulator
{
if (Connected)
{
try { ServerSocket?.Shutdown(SocketShutdown.Both); } catch { }
ServerSocket?.Close();
Connected = false;
Close();
return ClientState.Stop;
}