diff --git a/src/Tgstation.Server.Host/Components/Session/SessionControllerFactory.cs b/src/Tgstation.Server.Host/Components/Session/SessionControllerFactory.cs index 84c2ca9667..04e00f5536 100644 --- a/src/Tgstation.Server.Host/Components/Session/SessionControllerFactory.cs +++ b/src/Tgstation.Server.Host/Components/Session/SessionControllerFactory.cs @@ -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); } }