If your server "crashes", the thread(s), will freeze, resulting in the server not being able to run that "void of save". Better solution, stop the crashing.Quote:
if the server crashes or whatever.. the socket will disconnect causing it to run that void of save ><
But I do agree with you, saving when logging off is the way it's supposed to be done and the only sensible method.
No data is lost because when a socket is disconnected an event should be triggered and the socket can be either related or an object/void* wrapper inside the socket can be type casted to the GameClient, then save the GameClient.