Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
HEADER の出力タイミングを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Takym committed May 18, 2021
1 parent 2f6002d commit 68b7d9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Covid19Radar/Covid19Radar/Services/Logs/LogWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ private void WriteLine(DateTime jstNow, string line)
var newFile = new File(fname, _enc);
do {
if (Interlocked.CompareExchange(ref _file, newFile, file) == file) {
newFile.Writer.WriteLine(HEADER);
file?.Dispose();
file = newFile;
file.Writer.WriteLine(HEADER);
break;
}
Thread.Yield();
Expand Down

0 comments on commit 68b7d9f

Please sign in to comment.