Skip to content

Commit

Permalink
SDLNet_WaitUntilResolved: fixed accidental extra lock of a mutex.
Browse files Browse the repository at this point in the history
Fixes #96.
  • Loading branch information
icculus committed Sep 28, 2024
1 parent cad9d77 commit edcf67d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/SDL_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,6 @@ int SDLNet_WaitUntilResolved(SDLNet_Address *addr, Sint32 timeout)
}
} else {
const Uint64 endtime = (SDL_GetTicks() + timeout);
SDL_LockMutex(resolver_lock);
while (SDL_GetAtomicInt(&addr->status) == 0) {
const Uint64 now = SDL_GetTicks();
if (now >= endtime) {
Expand Down

0 comments on commit edcf67d

Please sign in to comment.