Floobits/floobits-intellij — pull request #123 by kans (2014-03-11 00:52:14+00:00)
Title: use slightly better metric to see if we already have the main thread.

There is no need to create a new Runnable every time. This will also allow us to bail early in the future if we block for too long.

also, synchronized (...) is re-entrant.