mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 05:52:06 +01:00
Add message to InterruptedException if blocking queue was shut down
This commit is contained in:
parent
07c069e1a1
commit
32429bcb9c
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Copyright 2014-2018 Florian Schmaus
|
* Copyright 2014-2019 Florian Schmaus
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -110,7 +110,7 @@ public class ArrayBlockingQueueWithShutdown<E> extends AbstractQueue<E> implemen
|
||||||
|
|
||||||
private void checkNotShutdown() throws InterruptedException {
|
private void checkNotShutdown() throws InterruptedException {
|
||||||
if (isShutdown) {
|
if (isShutdown) {
|
||||||
throw new InterruptedException();
|
throw new InterruptedException("Queue was already shut down");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue