Skip to content

Commit

Permalink
Merge pull request #17794 from stuartwdouglas/17793
Browse files Browse the repository at this point in the history
Prevent potential deadlock
  • Loading branch information
gsmet authored Jun 9, 2021
2 parents d642151 + 3b20d40 commit f762885
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,15 +194,17 @@ public TestRunResults getTestRunResults() {
return testRunResults;
}

public synchronized void pause() {
if (started) {
testRunner.pause();
public void pause() {
TestRunner tr = this.testRunner;
if (tr != null) {
tr.pause();
}
}

public synchronized void resume() {
if (started) {
testRunner.resume();
public void resume() {
TestRunner tr = this.testRunner;
if (tr != null) {
tr.resume();
}
}

Expand Down

0 comments on commit f762885

Please sign in to comment.