Skip to content

Commit

Permalink
[Core] Call Destroy() in destructor of CUDPReceiver.
Browse files Browse the repository at this point in the history
  • Loading branch information
KerstinKeller authored and FlorianReimold committed Jan 26, 2024
1 parent d528d42 commit 54934df
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ecal/core/src/io/udp_receiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ namespace eCAL
#endif //ECAL_NPCAP_SUPPORT
}

CUDPReceiver::~CUDPReceiver()
{
Destroy();
}

bool CUDPReceiver::Create(const SReceiverAttr& attr_)
{
if (m_socket_impl) return false;
Expand Down
6 changes: 6 additions & 0 deletions ecal/core/src/io/udp_receiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ namespace eCAL
{
public:
CUDPReceiver();
~CUDPReceiver();

CUDPReceiver(const CUDPReceiver&) = delete;
CUDPReceiver& operator=(const CUDPReceiver&) = delete;
CUDPReceiver(CUDPReceiver&& rhs) = delete;
CUDPReceiver& operator=(CUDPReceiver&& rhs) = delete;

bool Create(const SReceiverAttr& attr_) override;
bool Destroy() override;
Expand Down

0 comments on commit 54934df

Please sign in to comment.