aboutsummaryrefslogtreecommitdiffstats
path: root/src/location.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/location.c')
-rw-r--r--src/location.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/location.c b/src/location.c
index a70be8c..bd852a1 100644
--- a/src/location.c
+++ b/src/location.c
@@ -168,7 +168,10 @@ get_location(const struct location_provider *provider, LOCATION_STATE *state, in
if (provider->fetch(state, location_out, &available) < 0)
return -1;
- } while (!available);
+ } while (!available && !exiting);
+
+ if (exiting)
+ eprintf(_("Terminated by user."));
return 1;
#endif