mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-10-26 22:47:09 +01: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:
1 parent
2ee475bb8d
commit
996c078105
11 files changed
+94
-158
No files matched your search
+4
-1
@@ -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