mirror of
https://github.com/RaindropViewer/RaindropViewer.git
synced 2026-07-27 22:11:39 +00:00
bugfix: fix MTDispatcher
This commit is contained in:
committed by
alexiscatnip
parent
1d24fea490
commit
c336c09f4b
@@ -138,7 +138,11 @@ public class UnityMainThreadDispatcher : MonoBehaviour
|
||||
|
||||
void OnDestroy()
|
||||
{
|
||||
_instance = null;
|
||||
//only perform clean-up for myself.
|
||||
if (_instance == this)
|
||||
{
|
||||
_instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
public static Thread GMainThread;
|
||||
|
||||
Reference in New Issue
Block a user