Correct phaser usage to deregister parties as they arrive
diff --git a/yoko-core/src/main/java/org/apache/yoko/orb/OB/GIOPConnectionThreaded.java b/yoko-core/src/main/java/org/apache/yoko/orb/OB/GIOPConnectionThreaded.java
index c6d6c2e..92aef1e 100644
--- a/yoko-core/src/main/java/org/apache/yoko/orb/OB/GIOPConnectionThreaded.java
+++ b/yoko-core/src/main/java/org/apache/yoko/orb/OB/GIOPConnectionThreaded.java
@@ -244,9 +244,9 @@
private void arrive() {
if ((properties_ & Property.CreatedByClient) != 0)
- orbInstance_.getClientPhaser().arrive();
+ orbInstance_.getClientPhaser().arriveAndDeregister();
else
- orbInstance_.getServerPhaser().arrive();
+ orbInstance_.getServerPhaser().arriveAndDeregister();
}
// ----------------------------------------------------------------