This commit is contained in:
2021-06-29 14:36:45 +08:00
parent c3d8a92b33
commit 2e6ca9b4fa
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -175,6 +175,7 @@ class Connection extends Pool
$client->commit();
}
$this->push($coroutineName, $client);
Context::remove($coroutineName);
$this->lastTime = time();
}
@@ -231,6 +232,7 @@ class Connection extends Pool
*/
public function disconnect($coroutineName, bool $isMaster = false)
{
Context::remove($coroutineName);
$coroutineName = $this->name($coroutineName, $isMaster);
$this->clean($coroutineName);
}