更新zltoolkit,适配最新代码

This commit is contained in:
xia-chu
2023-04-28 22:03:16 +08:00
parent 64553797bd
commit cdf97e7605
22 changed files with 26 additions and 26 deletions

View File

@@ -612,7 +612,7 @@ void HttpSession::sendResponse(int code,
}
//发送http body
AsyncSenderData::Ptr data = std::make_shared<AsyncSenderData>(shared_from_this(), body, bClose);
AsyncSenderData::Ptr data = std::make_shared<AsyncSenderData>(static_pointer_cast<Session>(shared_from_this()), body, bClose);
getSock()->setOnFlush([data]() { return AsyncSender::onSocketFlushed(data); });
AsyncSender::onSocketFlushed(data);
}