mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
Hold the output file mutex across the whole open/swap/close sequence in log.SetOutputFile, so a concurrent call cannot close the file the logger is currently writing to. Also deregister the signal channel when the signaller goroutine exits. Signed-off-by: Aayush7352 <aayushdixit924@gmail.com>