mu: fix C-d handler for mu server
This commit is contained in:
@ -1632,17 +1632,17 @@ mu_cmd_server (MuStore *store, MuConfig *opts/*unused*/, GError **err)
|
|||||||
* strings. returning NULL indicates an error */
|
* strings. returning NULL indicates an error */
|
||||||
my_err = NULL;
|
my_err = NULL;
|
||||||
args = read_command_line (&my_err);
|
args = read_command_line (&my_err);
|
||||||
if ((!args || g_hash_table_size(args) == 0) && !my_err) {
|
if (!args) {
|
||||||
if (args)
|
if (feof(stdin))
|
||||||
g_hash_table_destroy (args);
|
break;
|
||||||
continue;
|
if (my_err)
|
||||||
} else if (my_err) {
|
|
||||||
print_and_clear_g_error (&my_err);
|
print_and_clear_g_error (&my_err);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (handle_args (&ctx, args, &my_err)) {
|
switch (handle_args (&ctx, args, &my_err)) {
|
||||||
case MU_OK: break;
|
case MU_OK:
|
||||||
|
break;
|
||||||
case MU_STOP:
|
case MU_STOP:
|
||||||
do_quit = TRUE;
|
do_quit = TRUE;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user