mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Use SocketException when proxy connection fails
Allows using same error handling code as regular connection failures, see #670
This commit is contained in:
parent
80d51ede31
commit
992003da8d
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ namespace MinecraftClient.Proxy
|
||||||
{
|
{
|
||||||
ConsoleIO.WriteLineFormatted("§8" + e.Message);
|
ConsoleIO.WriteLineFormatted("§8" + e.Message);
|
||||||
proxy = null;
|
proxy = null;
|
||||||
return null;
|
throw new SocketException((int)SocketError.HostUnreachable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue