fix(TDI-48431): synchronize flush resumeutil (#5551)

This commit is contained in:
Oleksandr Zhelezniak
2022-09-01 10:08:10 +03:00
committed by GitHub
parent 8f10d203c2
commit d47cb925a1

View File

@@ -193,11 +193,15 @@ public class ResumeUtil {
}
}
}
public void flush() {
if(csvWriter != null) {
csvWriter.flush(true);
}
if (csvWriter == null) {
return;
}
synchronized (csvWriter) {
csvWriter.flush(true);
}
}
// Util: invoke target check point