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