mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Merge branch 'develop'
# Conflicts: # FFXIVClassic Map Server/packets/send/Actor/events/SetEmoteEventCondition.cs
This commit is contained in:
@@ -76,6 +76,7 @@ namespace FFXIVClassic_Lobby_Server
|
||||
|
||||
public void disconnect()
|
||||
{
|
||||
socket.Shutdown(SocketShutdown.Both);
|
||||
socket.Disconnect(false);
|
||||
}
|
||||
}
|
||||
|
@@ -51,9 +51,9 @@ namespace FFXIVClassic_Lobby_Server
|
||||
#region Socket Handling
|
||||
public bool startServer()
|
||||
{
|
||||
cleanupThread = new Thread(new ThreadStart(socketCleanup));
|
||||
cleanupThread.Name = "LobbyThread:Cleanup";
|
||||
cleanupThread.Start();
|
||||
//cleanupThread = new Thread(new ThreadStart(socketCleanup));
|
||||
//cleanupThread.Name = "LobbyThread:Cleanup";
|
||||
//cleanupThread.Start();
|
||||
|
||||
IPEndPoint serverEndPoint = new System.Net.IPEndPoint(IPAddress.Parse(ConfigConstants.OPTIONS_BINDIP), FFXIV_LOBBY_PORT);
|
||||
|
||||
@@ -147,7 +147,7 @@ namespace FFXIVClassic_Lobby_Server
|
||||
|
||||
bytesRead += conn.lastPartialSize;
|
||||
|
||||
if (bytesRead >= 0)
|
||||
if (bytesRead > 0)
|
||||
{
|
||||
int offset = 0;
|
||||
|
||||
@@ -187,6 +187,7 @@ namespace FFXIVClassic_Lobby_Server
|
||||
|
||||
lock (mConnectionList)
|
||||
{
|
||||
conn.disconnect();
|
||||
mConnectionList.Remove(conn);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user