/// <summary> /// Обработка результата выхода из системы /// </summary> private void Handle(LoggedOff msg) { if (msg != null) { Log.Info().Print($"Logoff received. Closing socket", LogFields.Login(settings?.Username)); using (socketLock.Lock()) { socket?.Close(); } logoffEfent.Set(); } connectionStatus = ConnectionStatus.Connecting; OnConnectionStatusChanged(connectionStatus); }