diff --git a/src/Tgstation.Server.Host/Components/Session/SessionControllerFactory.cs b/src/Tgstation.Server.Host/Components/Session/SessionControllerFactory.cs index 3b7a617e41..e1e77a2098 100644 --- a/src/Tgstation.Server.Host/Components/Session/SessionControllerFactory.cs +++ b/src/Tgstation.Server.Host/Components/Session/SessionControllerFactory.cs @@ -124,8 +124,10 @@ namespace Tgstation.Server.Host.Components.Session { socket.Bind(new IPEndPoint(IPAddress.Any, port)); } - catch (Exception ex) + catch (SocketException ex) { + if(ex.SocketErrorCode != SocketError.AddressAlreadyInUse) + throw; throw new JobException(ErrorCode.DreamDaemonPortInUse, ex); } }