[wing] namedpipelistener: clear the already_connected flag
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [wing] namedpipelistener: clear the already_connected flag
- Date: Sun, 23 Oct 2016 16:46:18 +0000 (UTC)
commit 28d4a3f37de8aeb6d65913dcfb3202d337d9b25d
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Oct 23 18:43:32 2016 +0200
    namedpipelistener: clear the already_connected flag
    
    Once we accept the pipe we must clear the flag, otherwise we
    keep finding the same PipeData over and over.
 wing/wingnamedpipelistener.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/wing/wingnamedpipelistener.c b/wing/wingnamedpipelistener.c
index 6468208..7f3137e 100644
--- a/wing/wingnamedpipelistener.c
+++ b/wing/wingnamedpipelistener.c
@@ -168,6 +168,9 @@ create_pipe_from_pipe_data (PipeData  *pipe_data,
   /* Set event as signaled */
   SetEvent(pipe_data->overlapped.hEvent);
 
+  /* clear the flag if this was already connected */
+  pipe_data->already_connected = FALSE;
+
   pipe_data->handle = CreateNamedPipeW (pipe_data->pipe_namew,
                                         PIPE_ACCESS_DUPLEX |
                                         FILE_FLAG_OVERLAPPED,
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]