提交 4becfcb9 authored 作者: Thomas Mueller's avatar Thomas Mueller

Closing the file lock will now wait until the background thread is stopped.

上级 8ac23f95
......@@ -156,7 +156,6 @@ public class FileLock implements Runnable {
try {
if (watchdog != null) {
watchdog.interrupt();
watchdog.join();
}
} catch (Exception e) {
trace.debug(e, "unlock");
......@@ -176,6 +175,15 @@ public class FileLock implements Runnable {
fileName = null;
serverSocket = null;
}
try {
if (watchdog != null) {
watchdog.join();
}
} catch (Exception e) {
trace.debug(e, "unlock");
} finally {
watchdog = null;
}
}
/**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论