(TK-101) Re-throw IOException from AsyncClose/close call

This commit rethrows any `IOException` caught on a closeable close call
made from the `AsyncClose` class.
This commit is contained in:
Jeremy Barlow 2014-10-20 22:53:34 -07:00
parent f859bd907a
commit cbeacd1860

View file

@ -30,6 +30,7 @@ public class AsyncClose {
this.closeable.close();
} catch (IOException ioe) {
LOGGER.error("Async close error", ioe);
throw new RuntimeException("Async close error", ioe);
}
}
}