Merge pull request #1366 from Barenboim/master

Fix MySQL connection crash.
This commit is contained in:
xiehan
2023-09-08 17:06:34 +08:00
committed by GitHub

View File

@@ -745,9 +745,9 @@ bool ComplexMySQLTask::finish_once()
{
if (this->state != WFT_STATE_SUCCESS || this->keep_alive_timeo == 0)
{
auto *target = (RouteManager::RouteTarget *)this->get_target();
CommTarget *target = this->get_target();
if (target)
target->state = 0;
((RouteManager::RouteTarget *)target)->state = 0;
}
}