mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Send
unsubscribe actions to synchronization context for consistency and safety
This commit is contained in:
@ -300,7 +300,7 @@ namespace osu.Game.Database
|
||||
return new InvokeOnDisposal(() =>
|
||||
{
|
||||
if (ThreadSafety.IsUpdateThread)
|
||||
unsubscribe();
|
||||
syncContext.Send(_ => unsubscribe(), null);
|
||||
else
|
||||
syncContext.Post(_ => unsubscribe(), null);
|
||||
|
||||
|
Reference in New Issue
Block a user