Skip to content

Commit

Permalink
UdpMulticastDriver: DTOR
Browse files Browse the repository at this point in the history
  • Loading branch information
willeccles committed Sep 11, 2024
1 parent 3069195 commit 36485b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/UdpMulticastDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ using util::Err;
struct UdpMcastDriver::Impl {
Impl();

~Impl();

ErrorCode Open(std::string_view interface_ip);

void Close() noexcept;
Expand Down Expand Up @@ -90,6 +92,8 @@ UdpMcastDriver::Impl::Impl()
CheckDeadline();
}

UdpMcastDriver::Impl::~Impl() { Close(); }

ErrorCode UdpMcastDriver::Impl::Open(std::string_view interface_ip) {
if (socket_.is_open()) {
return ErrorCode::kAlreadyConnected;
Expand Down

0 comments on commit 36485b1

Please sign in to comment.