mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-28 23:52:36 +01:00
Minor code improvement
This commit is contained in:
@@ -122,10 +122,8 @@ namespace Tgstation.Server.Host.Components.Session
|
||||
{
|
||||
SocketExtensions.BindTest(port);
|
||||
}
|
||||
catch (SocketException ex)
|
||||
catch (SocketException ex) when (ex.SocketErrorCode == SocketError.AddressAlreadyInUse)
|
||||
{
|
||||
if(ex.SocketErrorCode != SocketError.AddressAlreadyInUse)
|
||||
throw;
|
||||
throw new JobException(ErrorCode.DreamDaemonPortInUse, ex);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user