diff --git a/server/Windows/wf_peer.c b/server/Windows/wf_peer.c index a23604cdb..7065e163c 100644 --- a/server/Windows/wf_peer.c +++ b/server/Windows/wf_peer.c @@ -279,11 +279,11 @@ DWORD WINAPI wf_peer_main_loop(LPVOID lpParam) if (!client->Initialize(client)) goto fail_client_initialize; + context = (wfPeerContext*) client->context; + if (context->socketClose) goto fail_socked_closed; - context = (wfPeerContext*) client->context; - wfi = context->info; if (wfi->input_disabled)