Fix iloop race when using AddCommandListener and SourceMod unloads (bug 4077, r=pred).
This commit is contained in:
parent
7d15ec4d15
commit
69cfd36054
@ -151,7 +151,10 @@ class GenericCommandHooker : public IConCommandLinkListener
|
||||
while (iter != vtables.end())
|
||||
{
|
||||
if ((*iter).refcount)
|
||||
{
|
||||
iter++;
|
||||
continue;
|
||||
}
|
||||
/* Damn it. This event happens AFTER the plugin has unloaded!
|
||||
* There's two options. Remove the hook now and hope SH's memory
|
||||
* protection will prevent a crash. Otherwise, we can wait until
|
||||
|
Loading…
Reference in New Issue
Block a user