From 32429bcb9caf83c0654aa65987303cade531b1ae Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 8 May 2019 15:19:10 +0200 Subject: [PATCH] Add message to InterruptedException if blocking queue was shut down --- .../smack/util/ArrayBlockingQueueWithShutdown.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/util/ArrayBlockingQueueWithShutdown.java b/smack-core/src/main/java/org/jivesoftware/smack/util/ArrayBlockingQueueWithShutdown.java index 1288b8f18..d70ed77c9 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/util/ArrayBlockingQueueWithShutdown.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/util/ArrayBlockingQueueWithShutdown.java @@ -1,6 +1,6 @@ /** * - * Copyright 2014-2018 Florian Schmaus + * Copyright 2014-2019 Florian Schmaus * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -110,7 +110,7 @@ public class ArrayBlockingQueueWithShutdown extends AbstractQueue implemen private void checkNotShutdown() throws InterruptedException { if (isShutdown) { - throw new InterruptedException(); + throw new InterruptedException("Queue was already shut down"); } }