Skip to content

Commit

Permalink
Log sleep action. Fixes eclipse#1588
Browse files Browse the repository at this point in the history
  • Loading branch information
rawagner authored and mlabuda committed Jan 25, 2017
1 parent 727d563 commit 1a3bebc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ protected boolean throwTimeoutException() {
* time period to sleep
*/
public static void sleep(TimePeriod timePeriod) {
log.debug("Wait "+timePeriod.getSeconds() +" seconds");
if (Thread.currentThread().equals(Display.getDisplay().getThread())) {
throw new RuntimeException("Tried to execute sleep in UI thread!");
}
Expand Down

0 comments on commit 1a3bebc

Please sign in to comment.