summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-11-24 23:06:21 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-11-24 23:06:21 +0100
commita85c62a7579539b5a46068c80c2ea909913e6e66 (patch)
tree1a4d27fa4499d685edae01888fe2381da81713a2 /server
parent8deb1c3ad57bb0a84b5821cbe176438bced74eba (diff)
Clear recv_callback even when no error_callback is specified.
Diffstat (limited to 'server')
-rw-r--r--server/connection.cpp2
1 files changed, 2 insertions, 0 deletions
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();
}
}