This commit is contained in:
2021-01-04 16:17:59 +08:00
parent 176771011d
commit f5db735597
+5 -5
View File
@@ -408,13 +408,13 @@ class Connection extends Pool
} }
/** /**
* @param string $coroutineName * @param string $name
*/ */
public function desc(string $coroutineName) public function desc(string $name)
{ {
if (!isset($this->hasCreate[$coroutineName])) { if (!isset($this->hasCreate[$name])) {
$this->hasCreate[$coroutineName] = 0; return;
} }
$this->hasCreate[$coroutineName] -= 1; $this->hasCreate[$name] -= 1;
} }
} }