socket fixes, fix tank jumping

This commit is contained in:
Vinzenz Schroeter 2024-04-13 16:27:45 +02:00
commit b3dacbd6f6

View file

@ -93,9 +93,9 @@ internal sealed class ClientScreenServer(
await _channel.SendAsync(pixels.Data);
_lastSentPixels = pixels;
}
catch (ChannelClosedException)
catch (WebSocketException ex)
{
_logger.LogWarning("send failed, channel is closed");
_logger.LogWarning(ex, "send failed");
}
}