mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 18:32:56 +08: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();
|
contextFactory.FlushConnections();
|
||||||
|
|
||||||
if (Host != null)
|
if (Host?.UpdateThread != null)
|
||||||
Host.UpdateThread.ThreadPausing -= onUpdateThreadPausing;
|
Host.UpdateThread.ThreadPausing -= onUpdateThreadPausing;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user