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

Potential fix for #147.

parent 2e239a3b
......@@ -1779,8 +1779,12 @@ public class Solver<D extends DataStructureFactory>
@Override
public void run() {
Solver.this.undertimeout = false;
Solver.this.timer.cancel();
Solver.this.timer = null;
synchronized (Solver.this.timer) {
if (Solver.this.timer != null) {
Solver.this.timer.cancel();
Solver.this.timer = null;
}
}
}
};
this.timer = new Timer(true);
......
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