NetworkManager/clients/common
Benjamin Berg 4bcb4c4ef2 Add calls to g_simple_async_result_set_check_cancellable
If an operation is cancelled through the GCancellable, then the idiom is
that the operation is always cancelled, even if it has finished
successfully. To ensure this is the case, add calls to
g_simple_async_result_set_check_cancellable everywhere.

Without this, e.g. gnome-control-center will crash when switching away
from the power panel quickly, as the NMClient creation finishes
asynchronously and g-c-c assume that G_IO_ERROR_CANCELLED is returned to
ensure it doesn't access the now invalid user_data parameter.

https://bugzilla.gnome.org/show_bug.cgi?id=794088
(cherry picked from commit 26c215e22d)
(cherry picked from commit e1b99d9201)
(cherry picked from commit 2e62853509)
2018-03-08 15:36:42 +01:00
..
nm-polkit-listener.c Add calls to g_simple_async_result_set_check_cancellable 2018-03-08 15:36:42 +01:00
nm-polkit-listener.h all: cleanup includes in header files 2016-08-17 19:51:17 +02:00
nm-secret-agent-simple.c cli: macsec support 2017-01-16 17:47:10 +01:00
nm-secret-agent-simple.h clients: add define for NMSecretAgentSimple signal name 2016-09-14 23:32:52 +02:00
nm-vpn-helpers.c all: fix typos in documentation and translated strings 2016-08-26 19:00:12 +02:00
nm-vpn-helpers.h build: fix -Wold-style-declaration warnings 2017-02-06 19:42:43 +01:00