Local music stops playing after disconnecting from uPnP

Issue description:

When I leave the house, I typically turn off the UPnP renderer to the amplifier and jump in the car to start driving. The device will typically start playing the song and sometimes stops playing after 2 minutes, where the play button starts spinning as if the cache ran out of data. All files are local so this shouldn’t happen.

Logs:

Upload description: martlego debug android auto hangs

Additional information:

 
Killing the app and restarting it does resume the track without an issue.
Capturing the issue has been challenging because it does not happen every time.
 

Reproduction steps:

 
Play music over UPnP, stop music over UPnP, play music in the car, music hangs midway through the song
 

Media provider:

Local device

Screenshots:

     

If you do not have playback cache then yes the currently loaded media will keep trying to play as it was prepared, so via the cast web server for casting. Wifi disconnect the IP no more exists the connection no more works.

You can just skip next to workaround.