aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmicli
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2016-11-25 14:17:22 +0100
committerAleksander Morgado <aleksander@aleksander.es>2016-11-25 14:18:56 +0100
commit6f4925848f31903a2f2643c8640042190e8111f7 (patch)
tree7be0a43457146fae5e6d7e567c1baa700c14511e /src/qmicli
parent54f2dde4623d29a70125772c08af0d459dd72703 (diff)
downloadexternal_libqmi-6f4925848f31903a2f2643c8640042190e8111f7.zip
external_libqmi-6f4925848f31903a2f2643c8640042190e8111f7.tar.gz
external_libqmi-6f4925848f31903a2f2643c8640042190e8111f7.tar.bz2
qmicli: fix second ctrl+c handling in qmicli
A single ctrl+c cancels the GCancellable, and the second ctrl+c should have stopped the GMainLoop, but that was never happening.
Diffstat (limited to 'src/qmicli')
-rw-r--r--src/qmicli/qmicli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmicli/qmicli.c b/src/qmicli/qmicli.c
index 2208609..23cba0f 100644
--- a/src/qmicli/qmicli.c
+++ b/src/qmicli/qmicli.c
@@ -140,8 +140,8 @@ signals_handler (int signum)
g_printerr ("%s\n",
"cancelling the operation...\n");
g_cancellable_cancel (cancellable);
+ return;
}
- return;
}
if (loop &&