mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 12:35:34 +08:00
Asserate code is running on update thread
This commit is contained in:
parent
f0d132b16e
commit
4c0d76573c
@ -11,6 +11,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Development;
|
||||
using osu.Framework.Extensions;
|
||||
using osu.Game.Online.API;
|
||||
using osu.Game.Online.Multiplayer;
|
||||
@ -314,6 +315,8 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
switch (request)
|
||||
{
|
||||
case StartMatchCountdownRequest matchCountdownRequest:
|
||||
Debug.Assert(ThreadSafety.IsUpdateThread);
|
||||
|
||||
countdownStopSource?.Cancel();
|
||||
|
||||
var stopSource = countdownStopSource = new CancellationTokenSource();
|
||||
|
Loading…
Reference in New Issue
Block a user