fix racey crash during rewinder thread shutdown
This commit is contained in:
parent
d18a512db8
commit
103bf484b6
|
@ -80,8 +80,6 @@ namespace BizHawk.Client.Common
|
|||
|
||||
public void Uninitialize()
|
||||
{
|
||||
Clear();
|
||||
|
||||
if (_rewindThread != null)
|
||||
{
|
||||
_rewindThread.Dispose();
|
||||
|
@ -94,6 +92,8 @@ namespace BizHawk.Client.Common
|
|||
_rewindBuffer = null;
|
||||
}
|
||||
|
||||
Clear();
|
||||
|
||||
RewindEnabled = false;
|
||||
RewindFrequency = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue