[dacp] Increase current revision number even if there are no open requests

This change aligns with iTunes behavior. It also means that a client that is
not long polling can use the revision number (cmsr) value to check for changes.
This commit is contained in:
ejurgensen 2020-01-10 23:50:06 +01:00
parent 919906233c
commit dfd2a4ab14

View File

@ -743,14 +743,14 @@ playstatusupdate_cb(int fd, short what, void *arg)
read(update_pipe[0], &dummy, sizeof(dummy));
#endif
current_rev++;
if (!update_requests)
goto readd;
CHECK_NULL(L_DACP, evbuf = evbuffer_new());
CHECK_NULL(L_DACP, update = evbuffer_new());
current_rev++;
ret = make_playstatusupdate(update);
if (ret < 0)
goto out_free_update;