mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-31 08:19:16 +02:00
use the lock everywhere
This commit is contained in:
@@ -61,6 +61,7 @@ class Module(ActiveModifier):
|
||||
|
||||
if not self.originals or self.originals[-1] != track: self.originals.append(track)
|
||||
|
||||
with self.file_lock:
|
||||
with open("/tmp/radioPlayer_toplay", "w") as f:
|
||||
f.write('\n'.join(songs))
|
||||
f.write("\n")
|
||||
|
||||
Reference in New Issue
Block a user