force the socket closed so the client thread will die pretty fast. dirty hack, but teh read timeout is nuts otherwise.

This commit is contained in:
Chris Forbes
2010-07-26 17:49:08 +12:00
parent e30e97037f
commit 41b76144da

View File

@@ -14,6 +14,7 @@ using System.IO;
using System.Net.Sockets;
using System.Threading;
using OpenRA.Server;
using OpenRA.Support;
namespace OpenRA.Network
{
@@ -148,7 +149,9 @@ namespace OpenRA.Network
GC.SuppressFinalize( this );
t.Abort();
t.Join();
socket.Client.Close();
using( new PerfSample( "Thread.Join" ))
t.Join();
}
~NetworkConnection() { Dispose(); }