We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26f8dd2 commit 10579a9Copy full SHA for 10579a9
src/SDL_net.c
@@ -282,9 +282,9 @@ static int SDLCALL ResolverThread(void *data)
282
SDL_Delay(RandomNumberBetween(250, 2000 + (50 * simulated_loss)));
283
}
284
285
- int outcome;
+ NET_Status outcome;
286
if (ShouldSimulateLoss(simulated_loss)) {
287
- outcome = -1;
+ outcome = NET_FAILURE;
288
addr->errstr = SDL_strdup("simulated failure");
289
} else {
290
outcome = ResolveAddress(addr);
0 commit comments