From edcf67db96e9e65c372e03955369eb6796bb6b05 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Sat, 28 Sep 2024 01:11:16 -0400
Subject: [PATCH] SDLNet_WaitUntilResolved: fixed accidental extra lock of a
mutex.
Fixes #96.
---
src/SDL_net.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/SDL_net.c b/src/SDL_net.c
index 34b6cc2..55b3640 100644
--- a/src/SDL_net.c
+++ b/src/SDL_net.c
@@ -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) {