summaryrefslogtreecommitdiff
path: root/CSharp/Ivy/IvyPPC/IvyClient.cs
diff options
context:
space:
mode:
Diffstat (limited to 'CSharp/Ivy/IvyPPC/IvyClient.cs')
-rw-r--r--CSharp/Ivy/IvyPPC/IvyClient.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyClient.cs b/CSharp/Ivy/IvyPPC/IvyClient.cs
index dd03c8a..b71a28c 100644
--- a/CSharp/Ivy/IvyPPC/IvyClient.cs
+++ b/CSharp/Ivy/IvyPPC/IvyClient.cs
@@ -359,11 +359,11 @@ namespace IvyBus
override internal void TokenDie(ushort id, string arg)
{
- traceDebug("received die Message from " + appName);
+ traceDebug("received die Message from " + appName + "Raison: "+ arg);
// first, I'm not a first class IvyClient any more
bus.removeClient(this);
// invokes the die applicationListeners
- bool dontkillapp = bus.FireDie(this, id, arg);
+ Ivy.ApplicationExit killapp = bus.FireDie(this, id, arg);
// makes the bus die
bus.stop();
try
@@ -374,7 +374,7 @@ namespace IvyBus
{
throw new IvyException(ioe.Message);
}
- if ( !dontkillapp )
+ if (killapp == Ivy.ApplicationExit.FORCE_EXIT)
System.Windows.Forms.Application.Exit();
}
override internal void TokenBye(ushort err, string arg)