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; }