summaryrefslogtreecommitdiff
path: root/libmateweather/weather.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmateweather/weather.c')
-rw-r--r--libmateweather/weather.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmateweather/weather.c b/libmateweather/weather.c
index 71d43a4..0e7d8d6 100644
--- a/libmateweather/weather.c
+++ b/libmateweather/weather.c
@@ -557,7 +557,7 @@ _weather_info_fill (WeatherInfo *info,
info->cb_data = data;
if (!info->session) {
- info->session = soup_session_new ();
+ info->session = soup_session_new_with_options (SOUP_SESSION_TIMEOUT, MATEWEATHER_DEFAULT_TIMEOUT, NULL);
soup_session_add_feature_by_type (info->session, SOUP_TYPE_PROXY_RESOLVER_DEFAULT);
}
@@ -579,6 +579,7 @@ weather_info_abort (WeatherInfo *info)
if (info->session) {
soup_session_abort (info->session);
info->requests_pending = 0;
+ info->session = NULL;
}
}