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.
1 parent f3382d3 commit 7eb81c1Copy full SHA for 7eb81c1
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