diff options
author | fcolin | 2007-02-01 09:46:17 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 09:46:17 +0000 |
commit | ef36cded337e0ff85199fb16ebfb3296789083ff (patch) | |
tree | a10ce77cb2b1d5067b0987596f99992ff230556c | |
parent | 05eed86bd7c88f8d42f6833ccaa2c39fb8b84bc5 (diff) | |
download | ivy-csharp-ef36cded337e0ff85199fb16ebfb3296789083ff.zip ivy-csharp-ef36cded337e0ff85199fb16ebfb3296789083ff.tar.gz ivy-csharp-ef36cded337e0ff85199fb16ebfb3296789083ff.tar.bz2 ivy-csharp-ef36cded337e0ff85199fb16ebfb3296789083ff.tar.xz |
Utilisateur : Fcolin Date : 4/11/03 Heure : 18:07 Archivé dans $/EScribe/Ivy Commentaire: (vss 11)
-rw-r--r-- | CSharp/Ivy/Ivy/IvyClient.cs | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/CSharp/Ivy/Ivy/IvyClient.cs b/CSharp/Ivy/Ivy/IvyClient.cs index 9451265..eabdfb1 100644 --- a/CSharp/Ivy/Ivy/IvyClient.cs +++ b/CSharp/Ivy/Ivy/IvyClient.cs @@ -260,9 +260,9 @@ namespace IvyBus return ;
// we can be summoned to quit from two path at a time
clientThread = null;
- t.Interrupt();
// Tell newThread to go to sleep.
running = false;
+ t.Interrupt();
// Wait for newThread to end.
t.Join();
@@ -315,6 +315,13 @@ namespace IvyBus break;
}
}
+ catch (ThreadInterruptedException te)
+ {
+ Console.Error.WriteLine( te.Message );
+ Console.Error.WriteLine( te.StackTrace);
+ running = false;
+ break;
+ }
catch (IvyException ie)
{
Console.Error.WriteLine( ie.Message );
@@ -340,10 +347,11 @@ namespace IvyBus }
traceDebug("normally Disconnected from " + appName);
traceDebug("Thread stopped");
- // first, I'm not a first class IvyClient any more
- // bus.removeClient(this);
// invokes the Disconnected applicationListeners
bus.FireClientDisconnected(this);
+ // first, I'm not a first class IvyClient any more
+ bus.removeClient(this);
+
}
private void sendBuffer(String buffer)
|