akka/akka — pull request #661 by bantonsson (2012-08-30 13:38:53+00:00)
Title: Clear out interrupted flag before we recurse. See #2454

We need to clear out the interrupted flag before we recurse or else we will throw exceptions while trying to take the lock (again), which is not good.

Also if we return the thread with a set interrupted flag without throwing an exception we might leave the thread in a "bad TM" state.