3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 07:12:17 +00:00

Fix another Java-6ism

This commit is contained in:
Miron Cuperman (devrandom) 2011-10-24 04:39:35 +00:00
parent 82070afd24
commit 7a834cad6e

View File

@ -72,7 +72,7 @@ public class MockNetworkConnection implements NetworkConnection {
throw new RuntimeException("Unknown object in inbound queue.");
}
} catch (InterruptedException e) {
throw new IOException(e);
throw new IOException(e.getMessage());
} finally {
synchronized (this) {
waitingToRead = false;
@ -84,7 +84,7 @@ public class MockNetworkConnection implements NetworkConnection {
try {
outboundMessageQ.put(message);
} catch (InterruptedException e) {
throw new IOException(e);
throw new IOException(e.getMessage());
}
}