From e174c0d04e08571e154136c545d5024ca1cfd26c Mon Sep 17 00:00:00 2001 From: raveit65 Date: Mon, 15 Jan 2018 19:20:47 +0100 Subject: Revert "Add timeout, actully invalidate session in weather_info_abort" This reverts commit c307e7c9ee89e4ac17cc2bb2aa1e245d766cbc5e. fixes clock-applet crashes https://github.com/mate-desktop/libmateweather/issues/51 --- libmateweather/weather.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libmateweather/weather.c') diff --git a/libmateweather/weather.c b/libmateweather/weather.c index 0e7d8d6..71d43a4 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_with_options (SOUP_SESSION_TIMEOUT, MATEWEATHER_DEFAULT_TIMEOUT, NULL); + info->session = soup_session_new (); soup_session_add_feature_by_type (info->session, SOUP_TYPE_PROXY_RESOLVER_DEFAULT); } @@ -579,7 +579,6 @@ weather_info_abort (WeatherInfo *info) if (info->session) { soup_session_abort (info->session); info->requests_pending = 0; - info->session = NULL; } } -- cgit v1.2.1