mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-19 16:47:14 +02:00
Introduce a new module event to be called after the virtual machine was destroyed. Thus, preventing the release of the virtual machine while still in use.
Prevent releasing IRC sessions while they could still be in use. Few other changes that had to be committed because of the change in the module API.
This commit is contained in:
@ -406,7 +406,6 @@ void Core::Terminate()
|
||||
{
|
||||
if (m_VM)
|
||||
{
|
||||
|
||||
LogDbg("Signaling outside plug-ins to release their resources");
|
||||
// Tell modules to do their monkey business
|
||||
_Func->SendPluginCommand(0xDEADC0DE, "");
|
||||
@ -444,6 +443,10 @@ void Core::Terminate()
|
||||
m_VM = nullptr;
|
||||
// Attempt to close the VM
|
||||
sq_close(sq_vm);
|
||||
|
||||
LogDbg("Signaling outside plug-ins to release the virtual machine");
|
||||
// Tell modules to do their monkey business
|
||||
_Func->SendPluginCommand(0xDEADBEAF, "");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user