pull/2209/merge
Alex Hua 2024-07-01 17:24:36 +08:00 committed by GitHub
commit 265d424a2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -149,6 +149,7 @@ void HttpServerBodyCommand::addHttpServerResponseCommand(bool delayed)
auto resp = make_unique<HttpServerResponseCommand>(getCuid(), httpServer_, e_, auto resp = make_unique<HttpServerResponseCommand>(getCuid(), httpServer_, e_,
socket_); socket_);
if (delayed) { if (delayed) {
e_->deleteSocketForWriteCheck(socket_, resp.get());
e_->addCommand( e_->addCommand(
make_unique<DelayedCommand>(getCuid(), e_, 1_s, std::move(resp), true)); make_unique<DelayedCommand>(getCuid(), e_, 1_s, std::move(resp), true));
return; return;