From dc88d60c1617b92bfa1d22f3e6f4873b3c1d012a Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Sat, 29 Jun 2024 17:47:47 +0800 Subject: [PATCH] fix http_engine crash --- tile/net/internal/http_engine.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tile/net/internal/http_engine.cc b/tile/net/internal/http_engine.cc index 4192f32..2b12a2c 100644 --- a/tile/net/internal/http_engine.cc +++ b/tile/net/internal/http_engine.cc @@ -267,6 +267,10 @@ public: for (auto &&c : clients_) { c->Stop(); } + + for (auto &&c : clients_) { + c.reset(); + } } private: