mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-30 22:17:13 +02:00
Properly terminate all command controllers and release their resources and callbacks to prevent a server crash at shutdown since callbacks were not released.
This commit is contained in:
@ -1193,7 +1193,7 @@ void Register_Command(HSQUIRRELVM vm)
|
||||
*/
|
||||
void TerminateCommands()
|
||||
{
|
||||
Cmd::Controller::ClearAll();
|
||||
Cmd::Controller::Terminate();
|
||||
}
|
||||
|
||||
} // Namespace:: SqMod
|
||||
|
Reference in New Issue
Block a user