Skip to content
Permalink
Browse files
Arrive at phaser only after acceptor is shut down and closed
  • Loading branch information
djencks committed Aug 11, 2016
1 parent 4a9d9e5 commit cca05ce419d983d9ac13c5458b4be331f4f00024
Showing 1 changed file with 2 additions and 2 deletions.
@@ -65,6 +65,7 @@ public void run() {
// Close the acceptor
//
acceptor_.close();
orbInstance_.getServerPhaser().arriveAndDeregister();

}
}
@@ -174,7 +175,7 @@ synchronized public void setState(int state) {
//
// Run method for starter thread
//
public void starterRun() {
private void starterRun() {
while (true) {
//
// Get new transport, blocking
@@ -247,7 +248,6 @@ public void starterRun() {

if (state_ == StateClosed) {
logger.fine("Shutting down server thread");
orbInstance_.getServerPhaser().arrive();
break;
}
}

0 comments on commit cca05ce

Please sign in to comment.