Nullverweise warnings bereinigt

This commit is contained in:
2023-08-08 11:58:09 +02:00
parent 4af2bae8cd
commit ee6eb210b7
22 changed files with 125 additions and 102 deletions

View File

@@ -27,14 +27,14 @@ namespace CardMarketBot
{
try
{
SocketShutdown reason = SocketShutdown.Send;
//SocketShutdown reason = SocketShutdown.Send;
lock (_lock)
{
BinaryWriter writer = new BinaryWriter(client.GetStream());
writer.Write(str);
if (_closed)
{
reason = SocketShutdown.Both;
//reason = SocketShutdown.Both;
}
}
//client.Client.Shutdown(reason);
@@ -99,7 +99,7 @@ namespace CardMarketBot
return result == EResult.OK;
}
catch(SocketException e)
catch(SocketException)
{
throw new SocketException();
}