From df6b53424691502238946f3ffec3c477b8c730d1 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:51:58 +0000 Subject: Utilisateur : Fcolin Date : 10/02/06 Heure : 14:12 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 21) --- CSharp/Ivy/Ivy/IvyWatcher.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CSharp/Ivy/Ivy/IvyWatcher.cs b/CSharp/Ivy/Ivy/IvyWatcher.cs index 0cacef6..b943b21 100644 --- a/CSharp/Ivy/Ivy/IvyWatcher.cs +++ b/CSharp/Ivy/Ivy/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