Fixed threading deadlock issues in some circumstances
This commit is contained in:
parent
7f4ce13657
commit
11578b817d
@ -178,7 +178,6 @@ class BaseTest {
|
|||||||
|
|
||||||
this.fail_check = false;
|
this.fail_check = false;
|
||||||
|
|
||||||
synchronized (this.endPointConnections) {
|
|
||||||
Thread thread = null;
|
Thread thread = null;
|
||||||
if (!this.endPointConnections.isEmpty()) {
|
if (!this.endPointConnections.isEmpty()) {
|
||||||
// make sure to run this thread in the MAIN thread group..
|
// make sure to run this thread in the MAIN thread group..
|
||||||
@ -216,6 +215,7 @@ class BaseTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
while (!this.endPointConnections.isEmpty()) {
|
while (!this.endPointConnections.isEmpty()) {
|
||||||
|
synchronized (this.endPointConnections) {
|
||||||
try {
|
try {
|
||||||
this.endPointConnections.wait(stopAfterMillis);
|
this.endPointConnections.wait(stopAfterMillis);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user