Fix: racing condition with messages when the queue is full (#223)
There was a racing condition between the queue full message and *any* error message where the later are overwritten by the former.
This commit is contained in:
@@ -358,14 +358,17 @@ public class Client {
|
|||||||
this.renderingJob = null;
|
this.renderingJob = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.shouldWaitBeforeRender() == true) {
|
||||||
|
this.gui.status("Sending frames. Please wait");
|
||||||
|
|
||||||
while (this.shouldWaitBeforeRender() == true) {
|
while (this.shouldWaitBeforeRender() == true) {
|
||||||
try {
|
try {
|
||||||
Thread.sleep(4000); // wait a little bit
|
Thread.sleep(4000); // wait a little bit
|
||||||
this.gui.status("Sending frames. Please wait");
|
|
||||||
}
|
}
|
||||||
catch (InterruptedException e3) {
|
catch (InterruptedException e3) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this.log.removeCheckPoint(step);
|
this.log.removeCheckPoint(step);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ public class GuiSwing extends JFrame implements Gui {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void error(String msg_) {
|
public void error(String msg_) {
|
||||||
status(msg_);
|
status(msg_, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user