Skip to content

Commit

Permalink
[Chore] modified for run on android
Browse files Browse the repository at this point in the history
  • Loading branch information
fy0 committed Mar 28, 2024
1 parent a4be358 commit c20ceb6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions Lagrange.OneBot/Core/Network/Service/ForwardWSService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ public ForwardWSService(IOptionsSnapshot<ForwardWSServiceOptions> options, ILogg
public Task StartAsync(CancellationToken cancellationToken)
{
uint port = _options.Port;
if (IsPortInUse(port))
{
Log.LogPortInUse(_logger, port);
return Task.CompletedTask;
}
// if (IsPortInUse(port))
// {
// Log.LogPortInUse(_logger, port);
// return Task.CompletedTask;
// }

return Task.Run(() =>
{
Expand Down
10 changes: 5 additions & 5 deletions Lagrange.OneBot/Core/Network/Service/HttpService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ public HttpService(IOptionsSnapshot<HttpServiceOptions> options, ILogger<HttpSer
public Task StartAsync(CancellationToken cancellationToken)
{
uint port = _options.Port;
if (IsPortInUse(port))
{
Log.LogPortInUse(_logger, port);
return Task.CompletedTask;
}
// if (IsPortInUse(port))
// {
// Log.LogPortInUse(_logger, port);
// return Task.CompletedTask;
// }

Task.Run(() =>
{
Expand Down

0 comments on commit c20ceb6

Please sign in to comment.