diff options
Diffstat (limited to 'include/vm_websocket.hpp')
-rw-r--r-- | include/vm_websocket.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/vm_websocket.hpp b/include/vm_websocket.hpp index 7e55e4ec8c..4d86c3e231 100644 --- a/include/vm_websocket.hpp +++ b/include/vm_websocket.hpp @@ -590,9 +590,10 @@ inline void requestRoutes(App& app) return; } - boost::asio::buffer_copy(handler->inputBuffer->prepare(data.size()), - boost::asio::buffer(data)); - handler->inputBuffer->commit(data.size()); + size_t copied = boost::asio::buffer_copy( + handler->inputBuffer->prepare(data.size()), + boost::asio::buffer(data)); + handler->inputBuffer->commit(copied); handler->doWrite(); }); } |