summaryrefslogtreecommitdiff
path: root/cs/src/Ice/OutgoingAsync.cs
diff options
context:
space:
mode:
Diffstat (limited to 'cs/src/Ice/OutgoingAsync.cs')
-rw-r--r--cs/src/Ice/OutgoingAsync.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/cs/src/Ice/OutgoingAsync.cs b/cs/src/Ice/OutgoingAsync.cs
index 978bcae8ac1..56532af2dee 100644
--- a/cs/src/Ice/OutgoingAsync.cs
+++ b/cs/src/Ice/OutgoingAsync.cs
@@ -257,7 +257,11 @@ namespace IceInternal
{
if(waitHandle_ == null)
{
+#if SILVERLIGHT
+ waitHandle_ = new ManualResetEvent(false);
+#else
waitHandle_ = new EventWaitHandle(false, EventResetMode.ManualReset);
+#endif
}
if((state_ & Done) != 0)
{