We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 89c2eca + eb6588c commit c79ca83Copy full SHA for c79ca83
src/Microsoft.VisualStudio.Threading/JoinableTask.cs
@@ -1014,7 +1014,7 @@ internal int GetPendingEventCountForSynchronousTask(JoinableTask synchronousTask
1014
1015
if (this.pendingEventSource is null || taskHasPendingMessages == this)
1016
{
1017
- this.pendingEventSource = new WeakReference<JoinableTask>(taskHasPendingMessages);
+ this.pendingEventSource = taskHasPendingMessages.WeakSelf;
1018
}
1019
1020
this.pendingEventCount += newPendingMessagesCount;
0 commit comments