Showimage: Test thread ID for generic error.
* Thanks Ingo and Axel.
This commit is contained in:
parent
cae52eadac
commit
6ea53cb5bb
@ -173,7 +173,7 @@ ImageCache::Stop()
|
|||||||
thread_id thread;
|
thread_id thread;
|
||||||
while (true) {
|
while (true) {
|
||||||
thread = find_thread("image loader");
|
thread = find_thread("image loader");
|
||||||
if (thread == B_NAME_NOT_FOUND)
|
if (thread < 0)
|
||||||
break;
|
break;
|
||||||
wait_for_thread(thread, NULL);
|
wait_for_thread(thread, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user