Skip to content

Commit

Permalink
Reverting task changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
stebet authored and lukebakken committed Feb 7, 2023
1 parent 457cedd commit 8669618
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/RabbitMQ.Client/client/impl/Connection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public Connection(ConnectionConfig config, IFrameHandler frameHandler)
["connection_name"] = ClientProvidedName
};

_mainLoopTask = Task.Factory.StartNew(MainLoop, TaskCreationOptions.LongRunning).Unwrap();
_mainLoopTask = Task.Run(MainLoop);
try
{
Open();
Expand Down
2 changes: 1 addition & 1 deletion projects/RabbitMQ.Client/client/impl/SocketFrameHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public SocketFrameHandler(AmqpTcpEndpoint endpoint,
_pipeReader = PipeReader.Create(netstream);

WriteTimeout = writeTimeout;
_writerTask = Task.Factory.StartNew(WriteLoop, TaskCreationOptions.LongRunning).Unwrap();
_writerTask = Task.Run(WriteLoop);
}

public AmqpTcpEndpoint Endpoint
Expand Down

0 comments on commit 8669618

Please sign in to comment.