diff options
| author | Riccardo Spagni <ric@spagni.net> | 2017-12-25 21:16:37 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2017-12-25 21:16:37 +0200 |
| commit | 13b846971ce4df7c571ec1f4b34e905b8f2db0e1 (patch) | |
| tree | 9aaa496e1cb179d7c96d9466436352381414a162 | |
| parent | 9d1c4408ad23a73b96d8cd16d64c8dd1b2ca2ff8 (diff) | |
| parent | dba2de61e7dbd290bb03441899c229d5aace1cb1 (diff) | |
| download | monzero-core-13b846971ce4df7c571ec1f4b34e905b8f2db0e1.tar.gz monzero-core-13b846971ce4df7c571ec1f4b34e905b8f2db0e1.tar.xz monzero-core-13b846971ce4df7c571ec1f4b34e905b8f2db0e1.zip | |
Merge pull request #2909
dba2de61 levin_protocol_handler_async: call handler destroy function on dtor (moneromooo-monero)
| -rw-r--r-- | contrib/epee/include/net/levin_protocol_handler_async.h | 1 |
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 7b526e4e7..ae6622a29 100644 --- a/contrib/epee/include/net/levin_protocol_handler_async.h +++ b/contrib/epee/include/net/levin_protocol_handler_async.h @@ -99,6 +99,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); }; |
