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

Potential fix for #147.

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