Skip to content

Commit 12276a6

Browse files
author
Leonid Protsenko
committed
Fixing issue with Potential deadlock when threw exception
1 parent 3ab8ae7 commit 12276a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Release/include/pplx/pplxtasks.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2000,6 +2000,8 @@ namespace details
20002000
// This exception could only have come from within the chore body. It should've been caught
20012001
// and the task should be canceled with exception. Swallow the exception here.
20022002
_ASSERTE(_HasUserException());
2003+
if (!_HasUserException())
2004+
_CancelWithException(std::current_exception());
20032005
}
20042006
}
20052007

0 commit comments

Comments
 (0)