mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Applied changes by Rob
This commit is contained in:
@@ -260,6 +260,19 @@ abstract class AbstractChannelReplicator implements Closeable {
|
||||
isClosed = true;
|
||||
// context.close();
|
||||
executorService.shutdown();
|
||||
|
||||
|
||||
try {
|
||||
executorService.awaitTermination(5, TimeUnit.MILLISECONDS);
|
||||
} catch (Exception e) {
|
||||
executorService.shutdownNow();
|
||||
try {
|
||||
executorService.awaitTermination(10, TimeUnit.SECONDS);
|
||||
} catch (InterruptedException e1) {
|
||||
LOG.error("", e);
|
||||
}
|
||||
}
|
||||
|
||||
closeables.closeQuietly();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user