Fixed threading deadlock issues in some circumstances

This commit is contained in:
nathan 2019-01-22 14:41:40 +01:00
parent 7f4ce13657
commit 11578b817d

View File

@ -178,7 +178,6 @@ class BaseTest {
this.fail_check = false;
synchronized (this.endPointConnections) {
Thread thread = null;
if (!this.endPointConnections.isEmpty()) {
// make sure to run this thread in the MAIN thread group..
@ -216,6 +215,7 @@ class BaseTest {
}
while (!this.endPointConnections.isEmpty()) {
synchronized (this.endPointConnections) {
try {
this.endPointConnections.wait(stopAfterMillis);
} catch (InterruptedException e) {