summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/udp/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/udp/Client.cpp')
-rw-r--r--cpp/test/Ice/udp/Client.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/test/Ice/udp/Client.cpp b/cpp/test/Ice/udp/Client.cpp
index 845ef856ddf..f836ecc1912 100644
--- a/cpp/test/Ice/udp/Client.cpp
+++ b/cpp/test/Ice/udp/Client.cpp
@@ -69,5 +69,13 @@ main(int argc, char* argv[])
}
}
+#if TARGET_OS_IPHONE != 0
+ //
+ // iOS WORKAROUND: without a sleep before the communicator
+ // destroy, the close on the UDP socket hangs.
+ //
+ IceUtil::ThreadControl::sleep(IceUtil::Time::milliSeconds(500));
+#endif
+
return status;
}