Skip to content
Snippets Groups Projects
Commit e282315a authored by Etienne Kneuss's avatar Etienne Kneuss
Browse files

Make sure that we don't register an interruptible while interrupting

parent bd958218
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,10 @@ class InterruptManager(reporter: Reporter) {
}
}
def registerForInterrupts(i: Interruptible) {
def registerForInterrupts(i: Interruptible) = synchronized {
if (interrupted.get) {
i.interrupt()
}
interruptibles.put(i, true)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment