VirtualBox

Changeset 37456 in vbox


Ignore:
Timestamp:
Jun 14, 2011 8:40:19 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72263
Message:

Main/glue-java: somewhat more paranoia when releasing the port

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/glue-java.xsl

    r36883 r37456  
    24572457                    .createInstanceByContractID("@virtualbox.org/VirtualBox;1",
    24582458                                                null,
    2459                                                 org.mozilla.interfaces.IVirtualBox.IVIRTUALBOX_IID));
     2459                                                org.mozilla.interfaces.IVirtualBox.IVIRTUALBOX_IID));
    24602460    }
    24612461
     
    32573257           charToVal[valToChar[i]] = i;
    32583258
    3259         charToVal['='] = 0;
     3259        charToVal['='] = 0;
    32603260    }
    32613261
     
    35343534             this.vbox = new IVirtualBox(handle, port);
    35353535         }  catch (Throwable t) {
    3536              if (this.port != null)
     3536             if (this.port != null && pool != null) {
    35373537                pool.releasePort(this.port);
     3538                this.port = null;
     3539             }
    35383540             // we have to throw smth derived from RuntimeException
    35393541             throw new VBoxException(t, t.getMessage());
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette