Commit c7e21270 authored by Daniel Le Berre's avatar Daniel Le Berre

synchronizing both access to the timer object. Thanks Romain.

parent b430d191
......@@ -1830,9 +1830,13 @@ public class Solver<D extends DataStructureFactory>
cancelUntil(0);
cancelLearntLiterals(learnedLiteralsLimit);
if (!global && this.timeBasedTimeout && this.timer != null) {
this.timer.cancel();
this.timer = null;
if (!global && this.timeBasedTimeout) {
synchronized (this) {
if (this.timer != null) {
this.timer.cancel();
this.timer = null;
}
}
}
this.slistener.end(status);
if (!this.undertimeout) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment