Skip to content

Commit

Permalink
Redo some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaliumhexacyanoferrat committed Mar 17, 2020
1 parent 1794d57 commit 15ba80d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/GenHTTP.Core/Infrastructure/Endpoints/EndPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ private async Task Listen()

private void Handle(Socket client)
{
Task.Factory.StartNew(state => Accept((Socket)state), client, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default)
.ConfigureAwait(false);
Task.Run(async () => await Accept(client).ConfigureAwait(false))
.ConfigureAwait(false);
}

protected abstract Task Accept(Socket client);
Expand Down

0 comments on commit 15ba80d

Please sign in to comment.