(cae84e234) Translate Lidgren's "no response from remote host" error message

This commit is contained in:
Joonas Rikkonen
2019-05-18 17:39:59 +03:00
parent 744fb70829
commit a5e869ccd0
4 changed files with 64 additions and 20 deletions

View File

@@ -11,6 +11,8 @@ namespace Lidgren.Network
{
public partial class NetConnection
{
public const string NoResponseMessage = "Failed to establish connection - no response from remote host";
internal bool m_connectRequested;
internal bool m_disconnectRequested;
internal bool m_disconnectReqSendBye;
@@ -69,7 +71,7 @@ namespace Lidgren.Network
if (m_handshakeAttempts >= m_peerConfiguration.m_maximumHandshakeAttempts)
{
// failed to connect
ExecuteDisconnect("Failed to establish connection - no response from remote host", true);
ExecuteDisconnect(NoResponseMessage, true);
return;
}