aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Avatar/Concierge/ConciergeModule.cs
diff options
context:
space:
mode:
authorUbitUmarov2017-05-07 00:47:45 +0100
committerUbitUmarov2017-05-07 00:47:45 +0100
commitd0912b61516914f810ba306641aaaa813134462e (patch)
treefc2592d3f9514badd547ab0bad6cf6c4b6097f05 /OpenSim/Region/OptionalModules/Avatar/Concierge/ConciergeModule.cs
parent oops closed too soon (diff)
downloadopensim-SC-d0912b61516914f810ba306641aaaa813134462e.zip
opensim-SC-d0912b61516914f810ba306641aaaa813134462e.tar.gz
opensim-SC-d0912b61516914f810ba306641aaaa813134462e.tar.bz2
opensim-SC-d0912b61516914f810ba306641aaaa813134462e.tar.xz
let StreamReader be in using statements
Diffstat (limited to 'OpenSim/Region/OptionalModules/Avatar/Concierge/ConciergeModule.cs')
-rw-r--r--OpenSim/Region/OptionalModules/Avatar/Concierge/ConciergeModule.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/Concierge/ConciergeModule.cs b/OpenSim/Region/OptionalModules/Avatar/Concierge/ConciergeModule.cs
index c0de3d9..a5dc0ad 100644
--- a/OpenSim/Region/OptionalModules/Avatar/Concierge/ConciergeModule.cs
+++ b/OpenSim/Region/OptionalModules/Avatar/Concierge/ConciergeModule.cs
@@ -460,9 +460,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge
460 460
461 if (resp.ContentLength > 0) 461 if (resp.ContentLength > 0)
462 { 462 {
463 StreamReader content = new StreamReader(resp.GetResponseStream()); 463 using(StreamReader content = new StreamReader(resp.GetResponseStream()))
464 m_log.ErrorFormat("[Concierge] response from {0} content: {1}", bs.Uri, content.ReadToEnd()); 464 m_log.ErrorFormat("[Concierge] response from {0} content: {1}", bs.Uri, content.ReadToEnd());
465 content.Close();
466 } 465 }
467 } 466 }
468 } 467 }