Chart doesn't hang on quit anymore (bug 431)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17283 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2006-04-30 21:26:16 +00:00
parent 4436b7269d
commit 5e9bdfc4d7
1 changed files with 2 additions and 3 deletions

View File

@ -2219,10 +2219,9 @@ ChartWindow::Animation2(void *data)
status_t status;
do {
status = acquire_sem_etc(w->second_thread_lock, 1, B_TIMEOUT, 500000);
if (w->fKillThread)
return 0;
} while (status == B_TIMED_OUT || status == B_INTERRUPTED);
if (w->fKillThread)
return 0;
/* the duration of the processing is needed to control the
dynamic load split (see RefreshStar) */