summaryrefslogtreecommitdiff
path: root/vio/viosocket.c
diff options
context:
space:
mode:
Diffstat (limited to 'vio/viosocket.c')
-rw-r--r--vio/viosocket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vio/viosocket.c b/vio/viosocket.c
index 8dcf978f2fa..fb272a430b9 100644
--- a/vio/viosocket.c
+++ b/vio/viosocket.c
@@ -800,6 +800,7 @@ int vio_close_pipe(Vio * vio)
int r;
DBUG_ENTER("vio_close_pipe");
+ CancelIo(vio->hPipe);
CloseHandle(vio->pipe_overlapped.hEvent);
DisconnectNamedPipe(vio->hPipe);
r= CloseHandle(vio->hPipe);