19.07.2012, 02:43
After moving to a Debian machine, we noticed that the server will hang on either gmx or changemode.
I added some debugs to the script, to find out what was causing this.. and I have found it.
The cause is mysql_close(), and I have tried everything to fix it.. but I can't think of anything.
Heres the code:
What do I mean by hang?
It sends all the leave messages, but the server wont "reboot"
Nobody gets the login dialog, or anything.. and even after you quit, the client still reports you (and all the others at time of GMX) as online..
Soo.. does anyone know why this is happening?
Remember, worked fine on Windows, started happening with Debian.
I added some debugs to the script, to find out what was causing this.. and I have found it.
The cause is mysql_close(), and I have tried everything to fix it.. but I can't think of anything.
Heres the code:
pawn Код:
public OnGameModeExit()
{
// other stuff
mysql_close();
return 1;
}
It sends all the leave messages, but the server wont "reboot"
Nobody gets the login dialog, or anything.. and even after you quit, the client still reports you (and all the others at time of GMX) as online..
Soo.. does anyone know why this is happening?
Remember, worked fine on Windows, started happening with Debian.