mirror of
https://github.com/qicosmos/rest_rpc.git
synced 2026-08-29 08:34:47 +08:00
Merge pull request #133 from qicosmos/fix_response
This commit is contained in:
@@ -49,7 +49,7 @@ public:
|
||||
assert(data.size() < MAX_BUF_LEN);
|
||||
auto sp_data = std::make_shared<std::string>(std::move(data));
|
||||
std::weak_ptr<connection> weak = shared_from_this();
|
||||
asio::post([this, weak, sp_data, req_id, req_type] {
|
||||
asio::post(socket_.get_executor(), [this, weak, sp_data, req_id, req_type] {
|
||||
auto conn = weak.lock();
|
||||
if (conn) {
|
||||
response_interal(req_id, std::move(sp_data), req_type);
|
||||
|
||||
Reference in New Issue
Block a user