1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Don't remove immediate routines bucket.

This commit is contained in:
Sandu Liviu Catalin 2016-03-25 13:11:21 +02:00
parent ad9e02e5fb
commit f3af787bad

View File

@ -71,8 +71,8 @@ void Routine::Detach(Routine * routine, Interval interval)
{
bitr->mRoutines.erase(ritr); // Then erase it and move on
}
// Any reason to keep this bucket?
if (bitr->mRoutines.empty())
// Any reason to keep this bucket? (don't immediate routines with interval of 1)
if (interval != 1 && bitr->mRoutines.empty())
{
s_Buckets.erase(bitr); // Remove the bucket as well
}