summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-11-15 09:03:35 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-11-15 09:03:35 +0100
commite7fbda45b408b369daf75307ccc6f20bef11dcce (patch)
tree58e3f29c520b18d678437f6169c9d916848a8450 /server
parent7e599c9e515556bf2122bd33f971ef37bbaffd07 (diff)
Remove callback upon error to break circle of smart pointers.
Diffstat (limited to 'server')
-rw-r--r--server/connection.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/connection.cpp b/server/connection.cpp
index f7315b2..b64ae11 100644
--- a/server/connection.cpp
+++ b/server/connection.cpp
@@ -8,6 +8,7 @@ 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) {
+ recv_callback = NULL;
return;
}