diff options
author | fcolin | 2007-02-01 10:03:46 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 10:03:46 +0000 |
commit | 8dd785d35748a96d56f6a79939bdc5a650085c5e (patch) | |
tree | 87f3d5f67f51b57cef988b03de9d0e8811d10c39 | |
parent | 7fbf9b58f14ef93263150481485e8375f253e30c (diff) | |
download | ivy-csharp-8dd785d35748a96d56f6a79939bdc5a650085c5e.zip ivy-csharp-8dd785d35748a96d56f6a79939bdc5a650085c5e.tar.gz ivy-csharp-8dd785d35748a96d56f6a79939bdc5a650085c5e.tar.bz2 ivy-csharp-8dd785d35748a96d56f6a79939bdc5a650085c5e.tar.xz |
Utilisateur : Fcolin Date : 10/02/06 Heure : 14:12 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 21)
-rw-r--r-- | CSharp/Ivy/IvyPPC/IvyWatcher.cs | 4 |
1 files changed, 3 insertions, 1 deletions
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
|