Skip to content

Commit

Permalink
Fix bug in Java Ice/adapterDeactivation (#3080)
Browse files Browse the repository at this point in the history
  • Loading branch information
externl authored Nov 6, 2024
1 parent bebadb6 commit aed2b2f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -404,19 +404,19 @@ public static TestIntfPrx allTests(test.TestHelper helper) {
com.zeroc.Ice.InitializationData initData =
new com.zeroc.Ice.InitializationData();
initData.properties = new com.zeroc.Ice.Properties();
initData.properties.setProperty("Ice.ServerIdleTime", "1");
initData.properties.setProperty("Ice.ServerIdleTime", "0");
try (com.zeroc.Ice.Communicator idleCommunicator =
com.zeroc.Ice.Util.initialize(initData)) {
com.zeroc.Ice.ObjectAdapter adapter =
idleCommunicator.createObjectAdapterWithEndpoints(
"IdleAdapter", "tcp -h 127.0.0.1");
adapter.activate();
try {
Thread.sleep(1500);
Thread.sleep(1200);
} catch (InterruptedException ex) {
test(false);
}
test(idleCommunicator.isShutdown());
test(!idleCommunicator.isShutdown());
}
});
thread1.start();
Expand Down

0 comments on commit aed2b2f

Please sign in to comment.