From 0f20133af0eeabeb789120d26b70ae65e3231cf0 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Tue, 3 Aug 2010 20:40:27 +1200 Subject: [PATCH] fix crash in retry --- OpenRA.Game/Network/Connection.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Game/Network/Connection.cs b/OpenRA.Game/Network/Connection.cs index b2bce7a393..808d4ef3e8 100755 --- a/OpenRA.Game/Network/Connection.cs +++ b/OpenRA.Game/Network/Connection.cs @@ -149,7 +149,8 @@ namespace OpenRA.Network GC.SuppressFinalize( this ); t.Abort(); - socket.Client.Close(); + if (socket != null) + socket.Client.Close(); using( new PerfSample( "Thread.Join" )) t.Join(); }