mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-19 03:57:14 +01:00
Don't remove immediate routines bucket.
This commit is contained in:
parent
ad9e02e5fb
commit
f3af787bad
@ -71,8 +71,8 @@ void Routine::Detach(Routine * routine, Interval interval)
|
|||||||
{
|
{
|
||||||
bitr->mRoutines.erase(ritr); // Then erase it and move on
|
bitr->mRoutines.erase(ritr); // Then erase it and move on
|
||||||
}
|
}
|
||||||
// Any reason to keep this bucket?
|
// Any reason to keep this bucket? (don't immediate routines with interval of 1)
|
||||||
if (bitr->mRoutines.empty())
|
if (interval != 1 && bitr->mRoutines.empty())
|
||||||
{
|
{
|
||||||
s_Buckets.erase(bitr); // Remove the bucket as well
|
s_Buckets.erase(bitr); // Remove the bucket as well
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user