git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@921822 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2010-03-11 12:20:10 +00:00
parent dc0f5b392b
commit 909c1c3d18
1 changed files with 4 additions and 1 deletions

View File

@ -17,6 +17,7 @@
package org.apache.activemq.transport.vm;
import java.io.IOException;
import java.io.InterruptedIOException;
import java.net.URI;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.atomic.AtomicBoolean;
@ -100,7 +101,9 @@ public class VMTransport implements Transport, Task {
}
} catch (InterruptedException e) {
throw IOExceptionSupport.create(e);
InterruptedIOException iioe = new InterruptedIOException(e.getMessage());
iioe.initCause(e);
throw iioe;
} finally {
// Allow the peer to change state again...
peer.enqueueValve.decrement();