mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Fix #1705 : MySQL connection might be lost after long operations
This commit is contained in:
@@ -167,6 +167,7 @@ class connection
|
||||
public static function close_PDO_connection($name)
|
||||
{
|
||||
if (isset(self::$_PDO_instance[$name])) {
|
||||
self::$_PDO_instance[$name]->disconnect();
|
||||
self::$_PDO_instance[$name] = null;
|
||||
unset(self::$_PDO_instance[$name]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user