diff --git a/M2Mqtt/Net/Fx.cs b/M2Mqtt/Net/Fx.cs index 3fcc5058..b5d25478 100644 --- a/M2Mqtt/Net/Fx.cs +++ b/M2Mqtt/Net/Fx.cs @@ -25,7 +25,7 @@ public class Fx { public static void StartThread(ThreadStart threadStart) { - new Thread(threadStart).Start(); + new Thread(threadStart) { IsBackground = true }.Start(); } public static void SleepThread(int millisecondsTimeout)