Skip to content

Commit

Permalink
Simplified if in GlassFishORBHelper
Browse files Browse the repository at this point in the history
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
  • Loading branch information
dmatej committed Feb 13, 2024
1 parent d0ba42d commit 34a3814
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,9 @@ public ORB getORB() {
// Any callbacks that result from the protocol manager initialization itself cannot
// depend on having access to the protocol manager.
orb = orbFactory.createORB(props);

if (!isServer || protocolManager != null) {
return orb;
if (isServer && protocolManager == null) {
protocolManager = initProtocolManager(orb);
}
protocolManager = initProtocolManager(orb);
return orb;
} catch (Exception e) {
orb = null;
Expand Down

0 comments on commit 34a3814

Please sign in to comment.