Fix 'refreshVersions' calling too many times

This commit is contained in:
huangyuhui
2016-01-10 10:04:50 +08:00
parent 6c8c189b72
commit 9835aa4110
3 changed files with 11 additions and 10 deletions

View File

@@ -259,7 +259,7 @@ public class LogWindow extends javax.swing.JFrame {
log(status, Level.WARN);
}
public void log(String status, Level c) {
public synchronized void log(String status, Level c) {
status = status.replace("\t", " ");
Document d = txtLog.getStyledDocument();
SimpleAttributeSet sas = new SimpleAttributeSet();