From a85c62a7579539b5a46068c80c2ea909913e6e66 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Wed, 24 Nov 2010 23:06:21 +0100 Subject: Clear recv_callback even when no error_callback is specified. --- server/connection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/connection.cpp b/server/connection.cpp index fc6cadb..3286aa3 100644 --- a/server/connection.cpp +++ b/server/connection.cpp @@ -45,6 +45,8 @@ void Connection::error(const std::string& msg) { error_callback.clear(); f(msg); + } else { + recv_callback.clear(); } } -- cgit v1.2.3