fixed invalid DNS cancel
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user