Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan McGovern <alan.mcgovern@gmail.com>2011-08-18 21:50:23 +0400
committerAlan McGovern <alan.mcgovern@gmail.com>2011-09-23 14:29:24 +0400
commitddd69727deccabcfdaa9721672e32b268f97d47c (patch)
tree77998bcb705dd013e8c377cf4f927216ee1b3af9 /main/src/tools
parent8183caa357f2340ea6949aa41dbcd207dbdec34d (diff)
[CrashMonitor] Ensure we close the request stream or it'll never send
Diffstat (limited to 'main/src/tools')
-rw-r--r--main/src/tools/mdcrashlog/MonoDevelop.CrashReporting/CrashReporter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/tools/mdcrashlog/MonoDevelop.CrashReporting/CrashReporter.cs b/main/src/tools/mdcrashlog/MonoDevelop.CrashReporting/CrashReporter.cs
index 9cd9e97565..5176480025 100644
--- a/main/src/tools/mdcrashlog/MonoDevelop.CrashReporting/CrashReporter.cs
+++ b/main/src/tools/mdcrashlog/MonoDevelop.CrashReporting/CrashReporter.cs
@@ -104,7 +104,7 @@ namespace MonoDevelop.CrashReporting
request.Method = "POST";
// Write the log file to the request stream
- var requestStream = request.GetRequestStream ();
+ using (var requestStream = request.GetRequestStream ())
using (var s = File.OpenRead (report.CrashLogPath))
s.CopyTo (requestStream);