View Single Post
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 05-23-2019 , 15:10   Re: client_disconnected() <-> plugin_end()
Reply With Quote #21

Your mistake is you are saving all data when client disconnects, when it must be saved a few seconds later a data is changed. Then you can assume is not needed to re-save data on disconnect (and avoid this) and your data would be safe from a random crash, which wont call any data save function from your addon. In summary, refactor your save code, it must get a bit complex to make it work as expected.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline