try fixing crash in trace logger. seemingly a race condition between a create, a flush, and a subsequent open for tracing (for issue #299)
This commit is contained in:
parent
53fa3b9ada
commit
c39617b638
|
@ -387,12 +387,9 @@ namespace BizHawk.Client.EmuHawk
|
||||||
if (_logFile.Exists)
|
if (_logFile.Exists)
|
||||||
{
|
{
|
||||||
_logFile.Delete();
|
_logFile.Delete();
|
||||||
_logFile.Create();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
_logFile.Create();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
using (_logFile.Create()) { }
|
||||||
|
|
||||||
FileBox.Text = _logFile.FullName;
|
FileBox.Text = _logFile.FullName;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue