1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 02:39:46 +02:00
This commit is contained in:
Daniel Neto 2024-05-28 10:41:31 -03:00
parent fc3045521f
commit 77ca57be13
2 changed files with 4 additions and 3 deletions

View file

@ -136,7 +136,7 @@ function _mysql_connect($persistent = false, $try = 0)
}
} catch (Exception $exc) {
if (empty($try)) {
_error_log('Error on connect, trying again [' . mysqli_connect_error() . ']');
_error_log('Error on connect, trying again [' . mysqli_connect_error() . '] IP='.getRealIpAddr());
_mysql_close();
sleep(5);
return _mysql_connect($persistent, $try + 1);