mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-09-15 08:47:17 +02:00
Implement a new module command that is called right before cosing the virtual machine to allow modules to release resources manually.
Should fix a possible crash in the IRC plugin which was caused by the Session destructor to be called recursively when cleaned automatically by the VM.
This commit is contained in:
@@ -202,7 +202,9 @@ void Session::Destroy()
|
||||
{
|
||||
// Make sure there's even a session to release
|
||||
if (!m_Session)
|
||||
{
|
||||
return;
|
||||
}
|
||||
// Disconnect the session
|
||||
Disconnect();
|
||||
// Break the association with this instance (paranoia)
|
||||
|
Reference in New Issue
Block a user