mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-384 protect from double close()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user