HCOLL-384 protect from double close()

This commit is contained in:
leventov
2015-09-10 16:47:30 +03:00
parent 8d25dd3454
commit fb9a1e80ec
@@ -605,6 +605,8 @@ public final class ChannelProvider implements Closeable {
channelDataLock.writeLock().lock();
try {
int removedPos = chronicleChannelPositionsInList[chronicleChannel];
if (removedPos == -1)
return;
chronicleChannelPositionsInList[removedPos] = -1;
chronicleChannelList.remove(removedPos);
chronicleChannelIds.remove(removedPos);