mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Fix validator-engine-console not stopping after error
This commit is contained in:
parent
417c3bb640
commit
9465fd866a
3 changed files with 7 additions and 3 deletions
|
@ -168,7 +168,10 @@ bool ValidatorEngineConsole::envelope_send_query(td::BufferSlice query, td::Prom
|
|||
return true;
|
||||
}
|
||||
|
||||
void ValidatorEngineConsole::got_result() {
|
||||
void ValidatorEngineConsole::got_result(bool success) {
|
||||
if (!success && ex_mode_) {
|
||||
std::_Exit(2);
|
||||
}
|
||||
running_queries_--;
|
||||
if (!running_queries_ && ex_queries_.size() > 0) {
|
||||
auto data = std::move(ex_queries_[0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue