summaryrefslogtreecommitdiff
path: root/objective-c/test
diff options
context:
space:
mode:
Diffstat (limited to 'objective-c/test')
-rw-r--r--objective-c/test/Common/TestCommon.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/objective-c/test/Common/TestCommon.m b/objective-c/test/Common/TestCommon.m
index a0e2925c4fe..d2b5b9b4437 100644
--- a/objective-c/test/Common/TestCommon.m
+++ b/objective-c/test/Common/TestCommon.m
@@ -187,7 +187,14 @@ serverReady(id<ICECommunicator> c)
void
serverStop()
{
- [communicator shutdown];
+ @try
+ {
+ [communicator shutdown];
+ }
+ @catch(ICECommunicatorDestroyedException* ex)
+ {
+ // Ignore, it's possible the test shutdown the server explicitly already.
+ }
}
void