mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-32239 (process may have been already restarted)
This commit is contained in:
@@ -444,11 +444,13 @@ public class FileWatcher {
|
||||
}
|
||||
|
||||
private void writeLine(String line) throws IOException {
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("to fsnotifier: " + line);
|
||||
}
|
||||
|
||||
final Process process = notifierProcess;
|
||||
final BufferedWriter writer = notifierWriter;
|
||||
try {
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("to fsnotifier: " + line);
|
||||
}
|
||||
final BufferedWriter writer = notifierWriter;
|
||||
if (writer != null) {
|
||||
writer.write(line);
|
||||
writer.newLine();
|
||||
@@ -457,7 +459,6 @@ public class FileWatcher {
|
||||
}
|
||||
catch (IOException e) {
|
||||
try {
|
||||
final Process process = notifierProcess;
|
||||
if (process != null) {
|
||||
process.exitValue();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user