From 6f4925848f31903a2f2643c8640042190e8111f7 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 25 Nov 2016 14:17:22 +0100 Subject: 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. --- src/qmicli/qmicli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qmicli/qmicli.c') 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 && -- cgit v1.1