[libgweather/wip/hadess/app-id: 8/9] gweather: Change the user-agent when the app ID changes
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/wip/hadess/app-id: 8/9] gweather: Change the user-agent when the app ID changes
- Date: Tue, 12 Jan 2021 12:36:52 +0000 (UTC)
commit cae80ef97ae8732a445a12cd7db55f77485782d4
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jan 12 12:07:53 2021 +0100
gweather: Change the user-agent when the app ID changes
As uncommon as that might be...
libgweather/gweather-weather.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/libgweather/gweather-weather.c b/libgweather/gweather-weather.c
index e2e167a3..a9cd5684 100644
--- a/libgweather/gweather-weather.c
+++ b/libgweather/gweather-weather.c
@@ -2204,6 +2204,11 @@ gweather_info_set_application_id (GWeatherInfo *info,
g_clear_pointer (&info->application_id, g_free);
info->application_id = g_strdup (application_id);
+
+ if (info->session) {
+ g_clear_object (&info->session);
+ info->session = ref_session (info);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]