From 8dd785d35748a96d56f6a79939bdc5a650085c5e Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 10:03:46 +0000 Subject: Utilisateur : Fcolin Date : 10/02/06 Heure : 14:12 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 21) --- CSharp/Ivy/IvyPPC/IvyWatcher.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CSharp/Ivy/IvyPPC/IvyWatcher.cs b/CSharp/Ivy/IvyPPC/IvyWatcher.cs index 0cacef6..b943b21 100644 --- a/CSharp/Ivy/IvyPPC/IvyWatcher.cs +++ b/CSharp/Ivy/IvyPPC/IvyWatcher.cs @@ -164,7 +164,9 @@ namespace IvyBus stream.Close(); if (listenThread != null) { - listenThread.Join(); + // Wait for Thread to end. + bool term = listenThread.Join(10000); + if (!term && (listenThread != null)) listenThread.Abort(); listenThread = null; } // it might not even have been created -- cgit v1.1