NetworkManager/clients/common
Benjamin Berg 2e62853509 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)
2018-03-08 15:10:24 +01:00
..
nm-polkit-listener.c Add calls to g_simple_async_result_set_check_cancellable 2018-03-08 15:10:24 +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 include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01: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 include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00