Showimage: Test thread ID for generic error.

* Thanks Ingo and Axel.
This commit is contained in:
Janus 2015-04-07 21:21:26 +00:00
parent cae52eadac
commit 6ea53cb5bb

View File

@ -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);
} }