Fix for the event loop on Windows.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 27 Jun 2021 14:06:58 +0000 (16:06 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 27 Jun 2021 14:09:46 +0000 (16:09 +0200)
commit2a441065a26f9796cdbc6e4ade50409b91d73f7e
treec9cc7be91364db9df652fbb3ad58b34a7b21083c
parentbda16410075a63b147179c15aa75640decf17ec7
Fix for the event loop on Windows.

The code did not take into account that the return value of
WSAWaitForMultipleEvents() is the offset into the event array plus
WSA_WAIT_EVENT_0.

Based on a patch from arsh0r.
src/event.c