Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: /var/local/www/currentsong.txt may be stale
#1
When Moode reboots /var/local/www/currentsong.txt is stale until the reboot process is complete, which can affect other programs that use this file and are running before the Moode startup has completed: http://moodeaudio.org/forum/showthread.p...6#pid24096

Perhaps currentsong.txt could be deleted sometime early in the startup process, so it does not exist with invalid details for the full startup.

Adrian.
Reply
#2
Sure no prob.

How about if I truncate it to size 0 at the beginning of moOde startup?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Hi Tim

Thanks. Deletion should work with the current mpd_oled code, otherwise I will add an extra test for the empty file.

Adrian.
Reply
#4
I ended up truncating the file. You can view the "Improve File check" commit in the repo
https://github.com/moode-player/moode/commits/develop
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
Hi Tim

Thanks.

Adrian.
Reply


Forum Jump: