mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-31 00:50:45 +01:00
Only throw error code 78 on correct socket error
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user