mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
Update
This commit is contained in:
parent
fc3045521f
commit
77ca57be13
2 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue