From 4f20bf987a942e66d8c2ed97df8c3da71d6f17ec Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Fri, 3 Dec 2010 05:47:35 +0100 Subject: Fixed error_code in Connection::handle_read(). --- server/connection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/connection.cpp') diff --git a/server/connection.cpp b/server/connection.cpp index 3286aa3..1e38f7b 100644 --- a/server/connection.cpp +++ b/server/connection.cpp @@ -6,9 +6,9 @@ Connection::Connection(boost::asio::io_service& io_service) : socket(io_service) } -void Connection::handle_read(uint8_t* data, std::size_t bytes, const boost::system::error_code& error) { - if(error) { - error(); +void Connection::handle_read(uint8_t* data, std::size_t bytes, const boost::system::error_code& error_code) { + if(error_code) { + error("Read error."); return; } -- cgit v1.2.3