Log socket errors

Update server binary
This commit is contained in:
Deathmax 2012-01-13 16:45:08 +08:00
parent fcc7cfff50
commit 3ef87534c8
3 changed files with 8 additions and 5 deletions

View file

@ -194,14 +194,17 @@ namespace TShockAPI
return true;
}
}
catch (ObjectDisposedException)
catch (ObjectDisposedException e)
{
Log.Error(e.ToString());
}
catch (SocketException)
catch (SocketException e)
{
Log.Error(e.ToString());
}
catch (IOException)
catch (IOException e)
{
Log.Error(e.ToString());
}
return false;
}