Don't reset ASYNCIO_CLOSE flag on async_wait

This commit is contained in:
heinrich5991 2017-10-12 00:53:12 +02:00
parent 4d05a2379b
commit 13f0655cba

View file

@ -728,7 +728,10 @@ void async_wait(ASYNCIO *aio)
lock_wait(aio->lock); lock_wait(aio->lock);
thread = aio->thread; thread = aio->thread;
aio->thread = 0; aio->thread = 0;
aio->finish = ASYNCIO_EXIT; if(aio->finish == ASYNCIO_RUNNING)
{
aio->finish = ASYNCIO_EXIT;
}
lock_unlock(aio->lock); lock_unlock(aio->lock);
sphore_signal(&aio->sphore); sphore_signal(&aio->sphore);
thread_wait(thread); thread_wait(thread);