Merge pull request #10920 from bfredl/asyncfail

api: make try_end clean-up after an exception properly.
This commit is contained in:
Björn Linse
2019-09-02 23:02:58 +02:00
committed by GitHub
2 changed files with 33 additions and 0 deletions

View File

@@ -125,6 +125,7 @@ bool try_end(Error *err)
// Set by emsg(), affects aborting(). See also enter_cleanup().
did_emsg = false;
force_abort = false;
if (got_int) {
if (current_exception) {