1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 08:22:56 +08:00

Fix compilation errors

This commit is contained in:
smoogipoo 2020-12-20 23:10:45 +09:00
parent 4ada0e17c0
commit 594db76cf3
2 changed files with 4 additions and 4 deletions

View File

@ -125,8 +125,7 @@ namespace osu.Game.Screens.Multi.Components
{ {
if (received == null) if (received == null)
{ {
rooms.Clear(); ClearRooms();
initialRoomsReceived.Value = false;
return; return;
} }
@ -171,7 +170,7 @@ namespace osu.Game.Screens.Multi.Components
protected void ClearRooms() protected void ClearRooms()
{ {
rooms.Clear(); rooms.Clear();
InitialRoomsReceived.Value = false; initialRoomsReceived.Value = false;
} }
/// <summary> /// <summary>

View File

@ -2,6 +2,7 @@
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using System; using System;
using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.Threading.Tasks; using System.Threading.Tasks;
using osu.Framework.Allocation; using osu.Framework.Allocation;
@ -81,7 +82,7 @@ namespace osu.Game.Screens.Multi.RealtimeMultiplayer
allowPolling.Value = isConnected.Value && JoinedRoom.Value == null; allowPolling.Value = isConnected.Value && JoinedRoom.Value == null;
} }
protected override RoomPollingComponent[] CreatePollingComponents() => new RoomPollingComponent[] protected override IEnumerable<RoomPollingComponent> CreatePollingComponents() => new RoomPollingComponent[]
{ {
listingPollingComponent = new RealtimeListingPollingComponent listingPollingComponent = new RealtimeListingPollingComponent
{ {