aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/command.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/command.c b/src/command.c
index 3a4a218e9..6ebcb977c 100644
--- a/src/command.c
+++ b/src/command.c
@@ -853,13 +853,16 @@ static int handleUpdate(struct client *client,
List *pathList = makeList(NULL, 1);
insertInList(pathList, argv[1], NULL);
ret = updateInit(pathList);
- if (ret == -1)
- command_error(client, ACK_ERROR_UPDATE_ALREADY,
- "already updating");
- return ret;
+ } else {
+ ret = updateInit(NULL);
}
- return ret;
+ if (ret == -1)
+ command_error(client, ACK_ERROR_UPDATE_ALREADY,
+ "already updating");
+
+ client_printf(client, "updating_db: %i\n", ret);
+ return 0;
}
static int handleNext(mpd_unused struct client *client,