Merge branch 'develop'

# Conflicts:
#	FFXIVClassic Map Server/packets/send/Actor/events/SetEmoteEventCondition.cs
This commit is contained in:
Filip Maj
2016-03-30 20:18:28 -04:00
37 changed files with 216 additions and 60 deletions

View File

@@ -76,6 +76,7 @@ namespace FFXIVClassic_Lobby_Server
public void disconnect()
{
socket.Shutdown(SocketShutdown.Both);
socket.Disconnect(false);
}
}

View File

@@ -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);
}
}