mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 15:23:11 +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 System.Threading.Tasks;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
|
using osu.Framework.Development;
|
||||||
using osu.Framework.Extensions;
|
using osu.Framework.Extensions;
|
||||||
using osu.Game.Online.API;
|
using osu.Game.Online.API;
|
||||||
using osu.Game.Online.Multiplayer;
|
using osu.Game.Online.Multiplayer;
|
||||||
@ -314,6 +315,8 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
switch (request)
|
switch (request)
|
||||||
{
|
{
|
||||||
case StartMatchCountdownRequest matchCountdownRequest:
|
case StartMatchCountdownRequest matchCountdownRequest:
|
||||||
|
Debug.Assert(ThreadSafety.IsUpdateThread);
|
||||||
|
|
||||||
countdownStopSource?.Cancel();
|
countdownStopSource?.Cancel();
|
||||||
|
|
||||||
var stopSource = countdownStopSource = new CancellationTokenSource();
|
var stopSource = countdownStopSource = new CancellationTokenSource();
|
||||||
|
Loading…
Reference in New Issue
Block a user