summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index 86285f4..b1fe924 100644
--- a/parser.c
+++ b/parser.c
@@ -1081,7 +1081,9 @@ void Parser_main (char *raw_in, int interactive_terminal, void(*cbfunc)(gpointer
(*cbfunc)(user_data, error_response);
}
} else {
- (*cbfunc)(user_data, response);
+ if (interactive_terminal) {
+ (*cbfunc)(user_data, response);
+ }
}
g_free (units);