aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-12-11 18:33:37 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-12-11 18:33:37 +0000
commitdba2de61e7dbd290bb03441899c229d5aace1cb1 (patch)
tree58fdb52740edf84593b15b1e165d3f8886be11c6 /contrib/epee/include
parentMerge pull request #2906 (diff)
downloadmonero-dba2de61e7dbd290bb03441899c229d5aace1cb1.tar.xz
levin_protocol_handler_async: call handler destroy function on dtor
Diffstat (limited to 'contrib/epee/include')
-rw-r--r--contrib/epee/include/net/levin_protocol_handler_async.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/epee/include/net/levin_protocol_handler_async.h b/contrib/epee/include/net/levin_protocol_handler_async.h
index 7ad6d198b..d13874f4e 100644
--- a/contrib/epee/include/net/levin_protocol_handler_async.h
+++ b/contrib/epee/include/net/levin_protocol_handler_async.h
@@ -97,6 +97,7 @@ public:
async_protocol_handler_config():m_pcommands_handler(NULL), m_pcommands_handler_destroy(NULL), m_max_packet_size(LEVIN_DEFAULT_MAX_PACKET_SIZE)
{}
+ ~async_protocol_handler_config() { set_handler(NULL, NULL); }
void del_out_connections(size_t count);
};