fixed invalid DNS cancel

This commit is contained in:
WolverinDEV
2019-10-26 12:34:14 +01:00
parent b6dade6fc8
commit 62bd63b6a9
2 changed files with 10 additions and 5 deletions
+5 -2
View File
@@ -330,6 +330,7 @@ struct CrStatus {
assert(this->pending > 0);
if(--pending == 0 && !this->finished) { //Order matters we have to decrease pensing!
this->print_status();
this->callback(false, "no results");
this->finished = true;
return;
@@ -399,15 +400,17 @@ struct CrStatus {
else \
std::cout << #element << ": success: " << std::get<2>(element).host << ":" << std::get<2>(element).port << std::endl;
void call_answer(const tc::dns::ServerAddress& data) {
void print_status() {
answer_log(this->subsrv_ts, this->execute_subsrv_ts);
answer_log(this->subsrv_ts3, this->execute_subsrv_ts3);
answer_log(this->tsdns, this->execute_tsdns);
answer_log(this->subdomain, this->execute_subdomain);
answer_log(this->rootsrv, this->execute_rootsrv);
answer_log(this->rootdomain, this->execute_rootdomain);
}
//TODO: Print data
void call_answer(const tc::dns::ServerAddress& data) {
this->print_status();
this->callback(true, data);
}
};