Skip to content

Commit 9edb184

Browse files
committed
Don't report the expected InterruptedException
Processor thread is interrupted when the client is requested to shutdown. That this may result in an InterruptedException is expected, and the exception is already handled appropriately. We just don't need to report it to he user handler, as it doesn't represent an error condition in the code (and we don't report it in other places too).
1 parent 6815e2a commit 9edb184

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/main/java/com/timgroup/statsd/StatsDProcessor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ protected void processLoop() {
6666
try {
6767
sendBuffer = bufferPool.borrow();
6868
} catch (final InterruptedException e) {
69-
handler.handle(e);
7069
return;
7170
}
7271

0 commit comments

Comments
 (0)