mirror of
https://github.com/ppy/osu
synced 2024-12-24 15:53:37 +00:00
Rename StartAsync -> ConnectAsync
This commit is contained in:
parent
46d1713e28
commit
c9108ce41b
@ -17,7 +17,7 @@ namespace osu.Game.Online
|
||||
Connection.Closed += InvokeClosed;
|
||||
}
|
||||
|
||||
public override Task StartAsync(CancellationToken cancellationToken) => Connection.StartAsync(cancellationToken);
|
||||
public override Task ConnectAsync(CancellationToken cancellationToken) => Connection.StartAsync(cancellationToken);
|
||||
|
||||
public override async ValueTask DisposeAsync()
|
||||
{
|
||||
|
@ -13,7 +13,7 @@ namespace osu.Game.Online
|
||||
|
||||
protected Task InvokeClosed(Exception? exception) => Closed?.Invoke(exception) ?? Task.CompletedTask;
|
||||
|
||||
public abstract Task StartAsync(CancellationToken cancellationToken);
|
||||
public abstract Task ConnectAsync(CancellationToken cancellationToken);
|
||||
|
||||
public virtual ValueTask DisposeAsync()
|
||||
{
|
||||
|
@ -92,7 +92,7 @@ namespace osu.Game.Online
|
||||
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
|
||||
await CurrentConnection.StartAsync(cancellationToken).ConfigureAwait(false);
|
||||
await CurrentConnection.ConnectAsync(cancellationToken).ConfigureAwait(false);
|
||||
|
||||
Logger.Log($"{ClientName} connected!", LoggingTarget.Network);
|
||||
isConnected.Value = true;
|
||||
|
Loading…
Reference in New Issue
Block a user