Skip to content

Commit f75ba8d

Browse files
authored
Update NetMQPoller.cs
Marking the Poller thread a background thread since the process hosting this poller is not shutting down.
1 parent 08f132e commit f75ba8d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/NetMQ/NetMQPoller.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,10 @@ public void RunAsync(string threadName)
430430
if (IsRunning)
431431
throw new InvalidOperationException("NetMQPoller is already running");
432432

433-
var thread = new Thread(Run) { Name = threadName };
433+
var thread = new Thread(Run) {
434+
Name = threadName,
435+
IsBackground = true
436+
};
434437
thread.Start();
435438

436439
m_switch.WaitForOn();

0 commit comments

Comments
 (0)