mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Merge pull request #1366 from Barenboim/master
Fix MySQL connection crash.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user