diff options
Diffstat (limited to 'src/Ivy.java')
-rwxr-xr-x | src/Ivy.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Ivy.java b/src/Ivy.java index fe11428..f5e32e2 100755 --- a/src/Ivy.java +++ b/src/Ivy.java @@ -43,7 +43,7 @@ public class Ivy implements Runnable, IvyApplicationListener { /** * the library version */ - public static String libVersion ="1.0.9"; + public static String libVersion ="1.0.10"; private boolean debug; private static int serial=0; /* an unique ID for each regexp */ @@ -110,10 +110,13 @@ public class Ivy implements Runnable, IvyApplicationListener { * disconnects from the Ivy bus. */ public void stop() { - if (!ivyRunning) { return; } + if (!ivyRunning) { + traceDebug("was already stropped ..."); + return; + } try { - app.close(); ivyRunning = false; + app.close(); watch.stop(); for (int i=0;i<clients.size();i++) { IvyClient client = (IvyClient)clients.elementAt(i); @@ -227,6 +230,7 @@ public class Ivy implements Runnable, IvyApplicationListener { for ( int i = 0 ; i < ivyApplicationListenerList.size(); i++ ) { ((IvyApplicationListener)ivyApplicationListenerList.elementAt(i)).disconnect(client); } + stop(); } /* invokes the application listeners upon death of an Ivy client |