Commit Diff
- Commit:
da2c6e07e7644d16ac2ed5b68a86e4bcf076655d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
- Message:
- fix 'amused load' with empty playlist it didn't send the IMSG_CTL_COMMIT final message so it would get stuck. This also makes 'amused flush' redundant since it's possible to 'amused load </dev/null'.
- Actions:
- Patch | Tree
--- ctl.c +++ ctl.c @@ -204,11 +204,6 @@ load_files(struct parse_result *res, int *ret) fclose(res->fp); res->fp = NULL; - if (i == 0) { - *ret = 1; - return 1; - } - imsg_compose(ibuf, IMSG_CTL_COMMIT, 0, 0, -1, &curr, sizeof(curr)); imsg_flush(ibuf);