diff --git a/src/VisualStudio/Core/Def/Implementation/Remote/GlobalNotificationRemoteDeliveryService.cs b/src/VisualStudio/Core/Def/Implementation/Remote/GlobalNotificationRemoteDeliveryService.cs index 3fb2a341b9340ec81544dbb078690a37ab923f69..ee73b4112e7f5b8dcd15e1cc995b5720f5d434df 100644 --- a/src/VisualStudio/Core/Def/Implementation/Remote/GlobalNotificationRemoteDeliveryService.cs +++ b/src/VisualStudio/Core/Def/Implementation/Remote/GlobalNotificationRemoteDeliveryService.cs @@ -76,7 +76,7 @@ private void OnGlobalOperationStarted(object sender, EventArgs e) lock (_globalNotificationsGate) { _globalNotificationsTask = _globalNotificationsTask.SafeContinueWithFromAsync( - SendStartNotificationAsync, _cancellationToken, TaskContinuationOptions.None, TaskScheduler.Default); + SendStartNotificationAsync, _cancellationToken, TaskContinuationOptions.OnlyOnRanToCompletion, TaskScheduler.Default); } } @@ -111,7 +111,7 @@ private void OnGlobalOperationStopped(object sender, GlobalOperationEventArgs e) lock (_globalNotificationsGate) { _globalNotificationsTask = _globalNotificationsTask.SafeContinueWithFromAsync( - previous => SendStoppedNotificationAsync(previous, e), _cancellationToken, TaskContinuationOptions.None, TaskScheduler.Default); + previous => SendStoppedNotificationAsync(previous, e), _cancellationToken, TaskContinuationOptions.OnlyOnRanToCompletion, TaskScheduler.Default); } }