X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=mcs%2Fclass%2Fcorlib%2FSystem.Runtime.CompilerServices%2FTaskAwaiter_T.cs;h=b59a0ef005e3736eed23103ee90f822c9dd2f6b7;hb=99b5aad5ee74b270b33e3779cf14cf18d847db50;hp=f12db5fe57814cf91ada45c557aa4c5aa1b581fa;hpb=77d2f31ac15486f20162c0d4455a62d2191e6b16;p=mono.git diff --git a/mcs/class/corlib/System.Runtime.CompilerServices/TaskAwaiter_T.cs b/mcs/class/corlib/System.Runtime.CompilerServices/TaskAwaiter_T.cs index f12db5fe578..b59a0ef005e 100644 --- a/mcs/class/corlib/System.Runtime.CompilerServices/TaskAwaiter_T.cs +++ b/mcs/class/corlib/System.Runtime.CompilerServices/TaskAwaiter_T.cs @@ -53,7 +53,7 @@ namespace System.Runtime.CompilerServices public TResult GetResult () { if (!task.IsCompleted) - task.WaitCore (Timeout.Infinite, CancellationToken.None); + task.WaitCore (Timeout.Infinite, CancellationToken.None, true); if (task.Status != TaskStatus.RanToCompletion) ExceptionDispatchInfo.Capture (TaskAwaiter.HandleUnexpectedTaskResult (task)).Throw ();