comment out corrupting code

This commit is contained in:
Isaac Connor 2018-04-24 11:49:10 -04:00
parent cc525b2397
commit 21413c0fe6
1 changed files with 4 additions and 2 deletions

View File

@ -31,8 +31,10 @@ bool zmDbConnected = false;
bool zmDbConnect() {
// For some reason having these lines causes memory corruption and crashing on newer debian/ubuntu
// But they really need to be here in order to prevent a double open of mysql
if ( zmDbConnected )
return true;
//if ( zmDbConnected ) {
//Warning("Calling zmDbConnect when already connected");
//return true;
//}
if ( !mysql_init(&dbconn) ) {
Error("Can't initialise database connection: %s", mysql_error(&dbconn));