mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-11-16 22:27:19 +01: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