[raop] Bring back forgotten keep-alive for Apple TV's

The keep-alive was accidently disabled by the player refactor (after v26.5).
This commit is contained in:
ejurgensen 2019-05-12 00:11:07 +02:00
parent a208604c86
commit c36df4fb8e
1 changed files with 4 additions and 0 deletions

View File

@ -4793,6 +4793,10 @@ raop_write(struct output_buffer *obuf)
if (rs->state != RAOP_STATE_CONNECTED)
continue;
// Start sending OPTIONS to keep ATV's alive
if (!event_pending(keep_alive_timer, EV_TIMEOUT, NULL))
evtimer_add(keep_alive_timer, &keep_alive_tv);
rs->state = RAOP_STATE_STREAMING;
// Make a cb?
}