mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Don't reset ASYNCIO_CLOSE
flag on async_wait
This commit is contained in:
parent
4d05a2379b
commit
13f0655cba
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue