mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Fix unused ex warnings in websockets (#1001)
This commit is contained in:
parent
2d25c4b06f
commit
b9951f9ca7
@ -139,7 +139,7 @@ public override async Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byt
|
||||
frame = await WebSocketFrameReader.ReadAsync(_stream, buffer, linkedCts.Token);
|
||||
Events.Log.ReceivedFrame(_guid, frame.OpCode, frame.IsFinBitSet, frame.Count);
|
||||
}
|
||||
catch (SocketException ex)
|
||||
catch (SocketException)
|
||||
{
|
||||
// do nothing, the socket has been disconnected
|
||||
}
|
||||
@ -545,11 +545,11 @@ async Task WriteStreamToNetwork(MemoryStream stream, CancellationToken cancellat
|
||||
await _stream.WriteAsync(_buf.Array, _buf.Offset, _buf.Count, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
catch (IOException ex)
|
||||
catch (IOException)
|
||||
{
|
||||
// do nothing, the socket is not connected
|
||||
}
|
||||
catch (SocketException ex)
|
||||
catch (SocketException)
|
||||
{
|
||||
// do nothing, the socket is not connected
|
||||
}
|
||||
|
@ -143,7 +143,7 @@ async void ProcessTcpClient(TcpClient tcpClient, CancellationToken token)
|
||||
}
|
||||
|
||||
}
|
||||
catch(IOException ex)
|
||||
catch(IOException)
|
||||
{
|
||||
// do nothing. This will be thrown if the transport is closed
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user