Thank you for your donation!


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


/var/local/www/currentsong.txt is empty sometimes
#2
A program thats checking the file could see it as empty if it reads it between the time its opened/truncated and then written/closed. This time interval would be really short though, in the sub milliseconds range because there are just a few lines of code doing the file open/write/close. Have a look at function updExtMetaFile() in worker.php. Just assume its last state if you see it as empty.

The file being empty at startup is a bug. It's being created afresh without first checking to see if it already exists. I've added to the TODO list to fix for upcoming 7.3.0 release.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
RE: /var/local/www/currentsong.txt is empty sometimes - by Tim Curtis - 05-11-2021, 11:22 AM

Forum Jump: