summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-01-15 19:20:47 +0100
committerraveit65 <[email protected]>2018-01-25 12:23:55 +0100
commite174c0d04e08571e154136c545d5024ca1cfd26c (patch)
tree4d160b6e15456080b6f366bd2f1473b7ee8ccdf4
parentb03dae0358b55f88ab7ad474cb0b7527c7bad699 (diff)
downloadlibmateweather-e174c0d04e08571e154136c545d5024ca1cfd26c.tar.bz2
libmateweather-e174c0d04e08571e154136c545d5024ca1cfd26c.tar.xz
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
-rw-r--r--libmateweather/weather.c3
-rw-r--r--libmateweather/weather.h1
2 files changed, 1 insertions, 3 deletions
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;
}
}
diff --git a/libmateweather/weather.h b/libmateweather/weather.h
index 35ba169..d30b39f 100644
--- a/libmateweather/weather.h
+++ b/libmateweather/weather.h
@@ -24,7 +24,6 @@
#error "libmateweather should only be used if you understand that it's subject to change, and is not supported as a fixed API/ABI or as part of the platform"
#endif
-#define MATEWEATHER_DEFAULT_TIMEOUT (30)
#include <gdk-pixbuf/gdk-pixbuf.h>