Whelps, the info in the issue was not accurate. We are looking for the exception that writes a warning to the log file, not the console, not an error. This should be the right fix
This commit is contained in:
parent
d0ba424cd1
commit
b23cdb41c3
1 changed files with 8 additions and 12 deletions
|
|
@ -139,17 +139,6 @@ namespace TShockAPI
|
||||||
buffers[socket.whoAmI].Pop(buff.Length);
|
buffers[socket.whoAmI].Pop(buff.Length);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
catch (SocketException e)
|
|
||||||
{
|
|
||||||
switch ((uint)e.ErrorCode)
|
|
||||||
{
|
|
||||||
case 0x80004005:
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
Log.ConsoleError(e.ToString());
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
@ -212,7 +201,14 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
catch (SocketException e)
|
catch (SocketException e)
|
||||||
{
|
{
|
||||||
Log.Warn(e.ToString());
|
switch ((uint)e.ErrorCode)
|
||||||
|
{
|
||||||
|
case 0x80004005:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
Log.Warn(e.ToString());
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (IOException e)
|
catch (IOException e)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue