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:
@@ -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(); }
|
||||
|
||||
Reference in New Issue
Block a user