Fix 'refreshVersions' calling too many times

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

No files matched your search

@@ -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();