From 7237ac14fb475cf19a9fceeff36e139b18772c1c Mon Sep 17 00:00:00 2001 From: Generoso Martello Date: Fri, 4 Dec 2015 18:04:19 +0100 Subject: [PATCH] fixed CM11 driver bug --- XTenLib/XTenLib.nuspec | 4 ++-- XTenLib/XTenManager.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/XTenLib/XTenLib.nuspec b/XTenLib/XTenLib.nuspec index 5f60443..f31151c 100644 --- a/XTenLib/XTenLib.nuspec +++ b/XTenLib/XTenLib.nuspec @@ -2,7 +2,7 @@ XTenLib - 1.0.6 + 1.0.7 XTenLib Generoso Martello G-Labs @@ -18,7 +18,7 @@ Features - Automatically restabilish connection on error/disconnect - Compatible with Mono X10 Home Automation library for .Net / Mono - Added missing Tamper event to RF Security decode. + Fixed CM11 driver bug. G-Labs x10 home automation cm11 cm15 diff --git a/XTenLib/XTenManager.cs b/XTenLib/XTenManager.cs index 6066245..3527071 100644 --- a/XTenLib/XTenManager.cs +++ b/XTenLib/XTenManager.cs @@ -852,7 +852,7 @@ private void SendMessage(byte[] message) private void ReaderTask() { - while (IsConnected) + while (x10interface != null && !disconnectRequested) { try {