On one of the two devices I'm running the application on, the stream always stops after 17 minutes. Checking the code, I noticed a wifi wake lock was created and released, but never acquired. This PR adds the lock acquisition and fixes the issue for me.
When merging the multi-stream PR, this code will probably break, as some logic will be required to keep track of playing streams and release the lock (in MusicService.relaxResources()) only when the last stream has stopped playing.
On one of the two devices I'm running the application on, the stream always stops after 17 minutes. Checking the code, I noticed a wifi wake lock was created and released, but never acquired. This PR adds the lock acquisition and fixes the issue for me. When merging the multi-stream PR, this code will probably break, as some logic will be required to keep track of playing streams and release the lock (in MusicService.relaxResources()) only when the last stream has stopped playing.