HolyLib Wiki

HolyLib:OnServerCrash

  HolyLib:OnServerCrash( string crashedModule )

Description

Inside this hook, the server is in a weird state.
It allows you to attempt to save data but try not to cause memory allocations or such, as the entire server will be in a very fragile state.
The Lua GC is stopped when this hook is called to further reduce the chance of Lua crashing due to instability

Recently Added

This was recently added in version (0.8 - DEV).

Arguments

1string crashedModule

The full path to the binary file in which the crash occured in