mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
If a player tries to zone to a offline server they will see a standard error message. Also a reconnection attempt will be made on a disconnected server.
This commit is contained in:
parent
260878df38
commit
4ce4647a75
9 changed files with 112 additions and 24 deletions
|
@ -35,7 +35,7 @@ namespace FFXIVClassic_World_Server.DataObjects
|
|||
ownedZoneIds.Add(id);
|
||||
}
|
||||
|
||||
public void Connect()
|
||||
public bool Connect()
|
||||
{
|
||||
Program.Log.Info("Connecting to zone server @ {0}:{1}", zoneServerIp, zoneServerPort);
|
||||
IPEndPoint remoteEP = new IPEndPoint(IPAddress.Parse(zoneServerIp), zoneServerPort);
|
||||
|
@ -60,7 +60,9 @@ namespace FFXIVClassic_World_Server.DataObjects
|
|||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{ Program.Log.Error("Failed to connect"); return; }
|
||||
{ Program.Log.Error("Failed to connect"); return false; }
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public void SendPacket(SubPacket subpacket)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue