157158159160161162163164165166167
attachThread.start(); try { attachThread.join(attachTimeout); if (attachThread.isAlive()) { attachThread.interrupt(); throw new TimeoutException(); } } catch (InterruptedException e) { } if (ex[0] != null) {
135136137138139140141142143
} throw new VMDisconnectedException(message); } // Check for a timeout. if (packet == null) { throw new TimeoutException(); } return packet; }
181182183184185186187188189190191
// Check for a timeout. if (packet == null) { synchronized (fTimedOutPackets) { fTimedOutPackets.add(new Integer(id)); } throw new TimeoutException(NLS.bind( ConnectMessages.PacketReceiveManager_0, new String[] { id + "" })); //$NON-NLS-1$ } return packet; }