[wing/wip/nacho/poll-stream] same fix from silvio



commit a83111b3af14239f693fd4a6c938a645c2592b53
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date:   Thu Nov 29 09:54:43 2018 +0100

    same fix from silvio

 wing/wingoutputstream.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/wing/wingoutputstream.c b/wing/wingoutputstream.c
index 900f597..a444619 100644
--- a/wing/wingoutputstream.c
+++ b/wing/wingoutputstream.c
@@ -172,7 +172,10 @@ write_internal (GOutputStream  *stream,
 
   res = WriteFile (priv->handle, buffer, nbytes, &nwritten, &priv->overlap);
   if (res)
-    retval = nwritten;
+    {
+      retval = nwritten;
+      ResetEvent (priv->overlap.hEvent);
+    }
   else
     {
       int errsv = GetLastError ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]