HCOLL-384 #37 protect from double close()

This commit is contained in:
leventov
2015-09-10 16:46:29 +03:00
parent c292c7d657
commit aa3f3ad7d7
@@ -620,6 +620,8 @@ 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);