Only call UserDefinedTimersRemoved if there actually are any. Should fix #7998.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42776 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2011-09-28 13:06:48 +00:00
parent e94e30ff78
commit 17f2def171
1 changed files with 2 additions and 1 deletions

View File

@ -465,6 +465,7 @@ void
Thread::DeleteUserTimers(bool userDefinedOnly)
{
int32 count = fUserTimers.DeleteTimers(userDefinedOnly);
if (count > 0)
team->UserDefinedTimersRemoved(count);
}