diff --git a/restcomm/restcomm.testsuite/src/test/java/org/restcomm/connect/testsuite/http/AccountsEndpointTest.java b/restcomm/restcomm.testsuite/src/test/java/org/restcomm/connect/testsuite/http/AccountsEndpointTest.java index f9b3f86d04..5cc4056167 100644 --- a/restcomm/restcomm.testsuite/src/test/java/org/restcomm/connect/testsuite/http/AccountsEndpointTest.java +++ b/restcomm/restcomm.testsuite/src/test/java/org/restcomm/connect/testsuite/http/AccountsEndpointTest.java @@ -129,7 +129,7 @@ public void stopSipStack() throws InterruptedException { if (thinhPhone != null) { thinhPhone.dispose(); } - if (thinhSipStack != null) { + if (thinhSipStack != null && thinhSipStack.getSipProvider().getListeningPoints().length>0) { thinhSipStack.dispose(); } Thread.sleep(1000);