Add destructor to Recv Module

This commit is contained in:
2020-04-08 16:42:42 +02:00
parent d5258f546e
commit b75596e8a0
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -24,6 +24,8 @@ public:
RingBuffer& ring_buffer,
const header_map& header_values);
virtual ~ZmqRecvModule();
void start_recv(const std::string& connect_address,
const uint8_t n_receiving_threads);
void stop_recv();
+5
View File
@@ -15,6 +15,11 @@ ZmqRecvModule::ZmqRecvModule(
is_saving_(false)
{}
ZmqRecvModule::~ZmqRecvModule()
{
stop_recv();
}
void ZmqRecvModule::start_recv(
const string& connect_address,
const uint8_t n_receiving_threads)