Skip to content

Commit

Permalink
call abort() when creating broken_promise
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrsmrn committed Jul 17, 2024
1 parent 0a035da commit 26a278f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "dpdk"]
path = dpdk
url = ../dpdk
url = https://github.com/ptrsmrn/dpdk.git
2 changes: 1 addition & 1 deletion src/core/future.cc
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void engine_exit(std::exception_ptr eptr) {
engine().exit(1);
}

broken_promise::broken_promise() : logic_error("broken promise") { }
broken_promise::broken_promise() : logic_error("broken promise") { abort(); }

future_state_base::future_state_base(current_exception_future_marker) noexcept
: future_state_base(std::current_exception()) { }
Expand Down

0 comments on commit 26a278f

Please sign in to comment.