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 13bbdc6b23..19054a6d97 100644 --- a/include/vm_websocket.hpp +++ b/include/vm_websocket.hpp @@ -215,9 +215,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(); }); } |