diff --git a/src/uvw/stream.hpp b/src/uvw/stream.hpp index f2d5d2bd..f1eb8dda 100644 --- a/src/uvw/stream.hpp +++ b/src/uvw/stream.hpp @@ -143,7 +143,7 @@ class StreamHandle: public Handle { static void readCallback(uv_stream_t *handle, ssize_t nread, const uv_buf_t *buf) { T &ref = *(static_cast(handle->data)); // data will be destroyed no matter of what the value of nread is - std::unique_ptr data{buf->base}; + std::unique_ptr data{buf->base}; if(nread == UV_EOF) { // end of stream