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
|
@ -91,6 +91,7 @@ void Query::start_up() {
|
|||
|
||||
void Query::handle_error(td::Status error) {
|
||||
td::TerminalIO::out() << "Failed " << name() << " query: " << error << "\n";
|
||||
td::actor::send_closure(console_, &ValidatorEngineConsole::got_result, false);
|
||||
stop();
|
||||
}
|
||||
|
||||
|
@ -99,7 +100,7 @@ void Query::receive_wrap(td::BufferSlice R) {
|
|||
if (S.is_error()) {
|
||||
handle_error(std::move(S));
|
||||
} else {
|
||||
td::actor::send_closure(console_, &ValidatorEngineConsole::got_result);
|
||||
td::actor::send_closure(console_, &ValidatorEngineConsole::got_result, true);
|
||||
stop();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue