mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 14:52:54 +08:00
Fix more CI inspections
This commit is contained in:
parent
497213d529
commit
8e8ba9e77f
@ -138,7 +138,7 @@ namespace osu.Desktop
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Make sure that this is a laptop.
|
// Make sure that this is a laptop.
|
||||||
var gpus = new IntPtr[64];
|
IntPtr[] gpus = new IntPtr[64];
|
||||||
if (checkError(EnumPhysicalGPUs(gpus, out int gpuCount)))
|
if (checkError(EnumPhysicalGPUs(gpus, out int gpuCount)))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ namespace osu.Game.Tests.NonVisual
|
|||||||
var task3 = addTask();
|
var task3 = addTask();
|
||||||
|
|
||||||
// Cancel task2, allow task3 to complete.
|
// Cancel task2, allow task3 to complete.
|
||||||
task2.cancellation.Cancel();
|
await task2.cancellation.CancelAsync();
|
||||||
task2.mutex.Set();
|
task2.mutex.Set();
|
||||||
task3.mutex.Set();
|
task3.mutex.Set();
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ namespace osu.Game.Online.Chat
|
|||||||
{
|
{
|
||||||
await client.SendAsync(new StartChatRequest()).ConfigureAwait(false);
|
await client.SendAsync(new StartChatRequest()).ConfigureAwait(false);
|
||||||
Logger.Log(@"Now listening to websocket chat messages.", LoggingTarget.Network);
|
Logger.Log(@"Now listening to websocket chat messages.", LoggingTarget.Network);
|
||||||
chatStartCancellationSource.Cancel();
|
await chatStartCancellationSource.CancelAsync().ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user