mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 10:20:11 +01:00
connectivity: fix calling parent dispose()
(cherry picked from commit 2bf4960ec1)
This commit is contained in:
parent
cb54c14cd5
commit
5d4d0fd7e6
1 changed files with 5 additions and 6 deletions
|
|
@ -144,7 +144,7 @@ nm_connectivity_check_cb (SoupSession *session, SoupMessage *msg, gpointer user_
|
|||
|
||||
if (msg->status_code == 511) {
|
||||
_LOGD ("check for uri '%s' returned status '%d %s'; captive portal present.",
|
||||
uri, msg->status_code, msg->reason_phrase);
|
||||
uri, msg->status_code, msg->reason_phrase);
|
||||
new_state = NM_CONNECTIVITY_PORTAL;
|
||||
} else {
|
||||
/* Check headers; if we find the NM-specific one we're done */
|
||||
|
|
@ -164,7 +164,7 @@ nm_connectivity_check_cb (SoupSession *session, SoupMessage *msg, gpointer user_
|
|||
}
|
||||
} else {
|
||||
_LOGI ("check for uri '%s' returned status '%d %s'; assuming captive portal.",
|
||||
uri, msg->status_code, msg->reason_phrase);
|
||||
uri, msg->status_code, msg->reason_phrase);
|
||||
new_state = NM_CONNECTIVITY_PORTAL;
|
||||
}
|
||||
}
|
||||
|
|
@ -471,11 +471,10 @@ dispose (GObject *object)
|
|||
g_clear_object (&priv->soup_session);
|
||||
}
|
||||
|
||||
if (priv->check_id > 0) {
|
||||
g_source_remove (priv->check_id);
|
||||
priv->check_id = 0;
|
||||
}
|
||||
nm_clear_g_source (&priv->check_id);
|
||||
#endif
|
||||
|
||||
G_OBJECT_CLASS (nm_connectivity_parent_class)->dispose (object);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue