aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-09-16 19:11:55 -0400
committerLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-09-16 19:11:55 -0400
commit8269dba18724f6e87eb73cc0ba06885c194e62f3 (patch)
tree0d9b36230ba585e097f1c67eb8851cc72c1fe07b
parent6160d54024d1a7f19601e7c4a5850ebefabc1bb1 (diff)
Made WeatherClient disposable
-rw-r--r--MediaBrowser.Controller/Weather/WeatherClient.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Weather/WeatherClient.cs b/MediaBrowser.Controller/Weather/WeatherClient.cs
index c6692b87b..7226dccf0 100644
--- a/MediaBrowser.Controller/Weather/WeatherClient.cs
+++ b/MediaBrowser.Controller/Weather/WeatherClient.cs
@@ -15,7 +15,7 @@ namespace MediaBrowser.Controller.Weather
/// Based on http://www.worldweatheronline.com/free-weather-feed.aspx
/// The classes in this file are a reproduction of the json output, which will then be converted to our weather model classes
/// </summary>
- public class WeatherClient
+ public class WeatherClient : IDisposable
{
private HttpClient HttpClient { get; set; }
@@ -73,6 +73,11 @@ namespace MediaBrowser.Controller.Weather
return info;
}
+
+ public void Dispose()
+ {
+ HttpClient.Dispose();
+ }
}
class WeatherResult