mirror of
https://github.com/ppy/osu
synced 2024-12-14 10:57:41 +00:00
Add extra null safety in dispose call
This commit is contained in:
parent
63ab40ec24
commit
6922de12c6
@ -499,7 +499,7 @@ namespace osu.Game
|
||||
|
||||
contextFactory.FlushConnections();
|
||||
|
||||
if (Host != null)
|
||||
if (Host?.UpdateThread != null)
|
||||
Host.UpdateThread.ThreadPausing -= onUpdateThreadPausing;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user