1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-27 07:35:16 +02:00

* mu-cmd-server.c: don't give double error notifications

This commit is contained in:
Dirk-Jan C. Binnema 2011-09-20 23:59:07 +03:00
parent 689d94df62
commit 5866220781

View File

@ -786,7 +786,7 @@ mu_cmd_server (MuStore *store, MuConfig *opts, GError **err)
fputs (";; type your commands, and press Enter to execute them\n", stdout); fputs (";; type your commands, and press Enter to execute them\n", stdout);
query = mu_query_new (store, err); query = mu_query_new (store, err);
if (!query) if (!query) {
return MU_G_ERROR_CODE (err); return MU_G_ERROR_CODE (err);
while (1) { while (1) {
@ -800,10 +800,8 @@ mu_cmd_server (MuStore *store, MuConfig *opts, GError **err)
g_free (line); g_free (line);
my_err = NULL; my_err = NULL;
if (!handle_command (cmd, store, query, args, &my_err)) { if (!handle_command (cmd, store, query, args, &my_err))
server_error (&my_err, MU_ERROR_INTERNAL, "internal error");
g_clear_error (&my_err); g_clear_error (&my_err);
}
mu_str_free_list (args); mu_str_free_list (args);