We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f3382d3 + 7eb81c1 commit 262fe50Copy full SHA for 262fe50
projects/RabbitMQ.Client/client/impl/Connection.cs
@@ -850,7 +850,7 @@ public void MaybeStartHeartbeatTimers()
850
851
public void StartMainLoop(bool useBackgroundThread)
852
{
853
- _mainLoopTask = Task.Run((Action)MainLoop);
+ _mainLoopTask = Task.Factory.StartNew(MainLoop, TaskCreationOptions.LongRunning | TaskCreationOptions.DenyChildAttach);
854
}
855
856
public void HeartbeatReadTimerCallback(object state)
0 commit comments