From 706f75ddc251f02bf03853911656d06058755041 Mon Sep 17 00:00:00 2001 From: reger Date: Wed, 11 Mar 2015 19:36:23 +0100 Subject: [PATCH] try to fix hang on index blob merge on shutdown http://mantis.tokeek.de/view.php?id=505 It happens but not able to reproduce. This change makes sure terminate signal is catched at end of currently running merge jobs --- source/net/yacy/kelondro/rwi/IODispatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/kelondro/rwi/IODispatcher.java b/source/net/yacy/kelondro/rwi/IODispatcher.java index af7675761..6368576a4 100644 --- a/source/net/yacy/kelondro/rwi/IODispatcher.java +++ b/source/net/yacy/kelondro/rwi/IODispatcher.java @@ -69,8 +69,8 @@ public class IODispatcher extends Thread { } public void terminate() { + this.terminate = true; // asure current run() loop will termiate if (this.termination != null && this.controlQueue != null && isAlive()) { - this.terminate = true; this.controlQueue.release(); // await termination try {