Skip to content

Commit 8b6a412

Browse files
committed
Move variable decl to top of function
1 parent bd29b80 commit 8b6a412

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/connection_pool.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,14 @@ QuicConnPoolQueueConnectionClose(
248248
_In_ const BOOLEAN WaitForCompletion
249249
)
250250
{
251+
CXPLAT_EVENT CompletionEvent = {0};
252+
251253
Connection->CloseOper.Type = QUIC_OPER_TYPE_API_CALL;
252254
Connection->CloseOper.FreeAfterProcess = FALSE;
253255
Connection->CloseOper.API_CALL.Context = &Connection->CloseApiContext;
254256
Connection->CloseApiContext.Type = QUIC_API_TYPE_CONN_CLOSE;
255257
Connection->CloseApiContext.Status = NULL;
256258

257-
CXPLAT_EVENT CompletionEvent = {0};
258259
if (WaitForCompletion) {
259260
CxPlatEventInitialize(&CompletionEvent, TRUE, FALSE);
260261
Connection->CloseApiContext.Completed = &CompletionEvent;

0 commit comments

Comments
 (0)