From d0349b01cda7a4095b034c94edb0a0602c89f096 Mon Sep 17 00:00:00 2001 From: Ben Purdy Date: Mon, 9 Apr 2018 16:28:53 -0700 Subject: [PATCH] baton buffer is now reset after write operations are complete. --- src/serialport_win.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/serialport_win.cpp b/src/serialport_win.cpp index c620130be..24247478b 100644 --- a/src/serialport_win.cpp +++ b/src/serialport_win.cpp @@ -388,6 +388,7 @@ void EIO_AfterWrite(uv_async_t* req) { argv[0] = Nan::Null(); } baton->callback.Call(1, argv); + baton->buffer.Reset(); delete baton; }