This commit is contained in:
Timur A. Fatkhullin
2024-11-09 03:15:59 +03:00
parent 8d6e1bb59c
commit afd1a917b4
5 changed files with 82 additions and 163 deletions

View File

@@ -353,10 +353,13 @@ protected:
_isListening<SessionT>[this][id] = true;
doAccept<SessionT>(acceptor, std::move(id), std::move(sess_ctx));
} else {
errorMessage(SessionT::netservice_t::formatError(ec));
_isListening<SessionT>[this][id] = false;
}
});
}
virtual void errorMessage(const std::string&) = 0;
};