summaryrefslogtreecommitdiff
path: root/CSharp/Ivy/IvyPPC/IvyClient.cs
diff options
context:
space:
mode:
authorfcolin2007-02-01 09:57:43 +0000
committerfcolin2007-02-01 09:57:43 +0000
commitd7bacbe6f0f37ed078507b4d9d4090eb40bbd332 (patch)
tree98ebc9353637447b80deda52ebef190ca0edcbca /CSharp/Ivy/IvyPPC/IvyClient.cs
parent36df73bc9f6c6f7f36be6893a04fddab2a125c46 (diff)
downloadivy-csharp-d7bacbe6f0f37ed078507b4d9d4090eb40bbd332.zip
ivy-csharp-d7bacbe6f0f37ed078507b4d9d4090eb40bbd332.tar.gz
ivy-csharp-d7bacbe6f0f37ed078507b4d9d4090eb40bbd332.tar.bz2
ivy-csharp-d7bacbe6f0f37ed078507b4d9d4090eb40bbd332.tar.xz
Utilisateur : Fcolin Date : 4/11/03 Heure : 18:07 Archivé dans $/EScribe/Ivy Commentaire: (vss 11)
Diffstat (limited to 'CSharp/Ivy/IvyPPC/IvyClient.cs')
-rw-r--r--CSharp/Ivy/IvyPPC/IvyClient.cs14
1 files changed, 11 insertions, 3 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyClient.cs b/CSharp/Ivy/IvyPPC/IvyClient.cs
index 9451265..eabdfb1 100644
--- a/CSharp/Ivy/IvyPPC/IvyClient.cs
+++ b/CSharp/Ivy/IvyPPC/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)