aboutsummaryrefslogtreecommitdiff
path: root/src/Ivy.java
diff options
context:
space:
mode:
authorjestin2002-06-04 17:02:02 +0000
committerjestin2002-06-04 17:02:02 +0000
commit6a0be62488b406149903a7368cea8df0f1f27d33 (patch)
treeec3073dae7e11b55b3badef001a39fcb5ec6a1e1 /src/Ivy.java
parentba4e7756c028129dc0c22650b17ba52ee92c6056 (diff)
downloadivy-java-6a0be62488b406149903a7368cea8df0f1f27d33.zip
ivy-java-6a0be62488b406149903a7368cea8df0f1f27d33.tar.gz
ivy-java-6a0be62488b406149903a7368cea8df0f1f27d33.tar.bz2
ivy-java-6a0be62488b406149903a7368cea8df0f1f27d33.tar.xz
Many major corrections, see changelogs for details.
- Domain bug fix - die semantics OK - non CPU-eating socket listeners cVS: ----------------------------------------------------------------------
Diffstat (limited to 'src/Ivy.java')
-rwxr-xr-xsrc/Ivy.java10
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