Skip to content

Commit

Permalink
Merge pull request #1366 from Barenboim/master
Browse files Browse the repository at this point in the history
Fix MySQL connection crash.
  • Loading branch information
Barenboim authored Sep 8, 2023
2 parents d60e0b5 + e01a5ca commit daa6141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/factory/MySQLTaskImpl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit daa6141

Please sign in to comment.