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:
zeromus 2014-10-23 05:14:03 +00:00
parent 53fa3b9ada
commit c39617b638
1 changed files with 2 additions and 5 deletions

View File

@ -387,12 +387,9 @@ namespace BizHawk.Client.EmuHawk
if (_logFile.Exists)
{
_logFile.Delete();
_logFile.Create();
}
else
{
_logFile.Create();
}
using (_logFile.Create()) { }
FileBox.Text = _logFile.FullName;
}