Add extra null safety in dispose call

This commit is contained in:
Dean Herbert 2021-06-24 17:17:12 +09:00
parent 63ab40ec24
commit 6922de12c6

View File

@ -499,7 +499,7 @@ namespace osu.Game
contextFactory.FlushConnections();
if (Host != null)
if (Host?.UpdateThread != null)
Host.UpdateThread.ThreadPausing -= onUpdateThreadPausing;
}
}