From 20553a112d69abdf215732f9bf0bc1c970219a23 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Wed, 11 Aug 2010 18:20:50 +1200 Subject: [PATCH] Don't hide the original crash if the master server is inaccessible --- OpenRA.FileFormats/Support/Log.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/OpenRA.FileFormats/Support/Log.cs b/OpenRA.FileFormats/Support/Log.cs index 6d4b61ebe5..7b803af581 100755 --- a/OpenRA.FileFormats/Support/Log.cs +++ b/OpenRA.FileFormats/Support/Log.cs @@ -96,10 +96,12 @@ namespace OpenRA request.Headers.Add("Channel", kvp.Key); // request.Headers.Add("Diff", kvp.Value.Diff ? "1" : "0"); - using (var requestStream = request.GetRequestStream()) - requestStream.Write(buffer, 0, buffer.Length); - - //var response = (HttpWebResponse)request.GetResponse(); + try + { + using (var requestStream = request.GetRequestStream()) + requestStream.Write(buffer, 0, buffer.Length); + } + catch (Exception){} } } }