Skip to content

Commit 1041260

Browse files
authored
Merge pull request #329 from DataObjects-NET/async-session-opening-canceled-bug
Domain.OpenSessionInternalAsync: Prevent continuation if parent task was canceled
2 parents cca10f7 + 0bbe950 commit 1041260

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Orm/Xtensive.Orm/Orm/Domain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ internal async Task<Session> OpenSessionInternalAsync(SessionConfiguration confi
362362
}
363363
exceptionDispatchInfo = ExceptionDispatchInfo.Capture(ex);
364364
}
365-
}, TaskContinuationOptions.ExecuteSynchronously)
365+
}, TaskContinuationOptions.NotOnCanceled | TaskContinuationOptions.ExecuteSynchronously)
366366
.ConfigureAwait(false);
367367
}
368368
catch (OperationCanceledException) {

0 commit comments

Comments
 (0)