return;
}
+ if ( $this->disabled ) {
+ return; // DBConnRef handle probably survived longer than the LoadBalancer
+ }
+
$domain = $conn->getDomainID();
if ( !isset( $this->mConns['foreignUsed'][$serverIndex][$domain] ) ) {
throw new InvalidArgumentException( __METHOD__ .
function __destruct() {
// Avoid connection leaks for sanity
- $this->closeAll();
+ $this->disable();
}
}