diff options
Diffstat (limited to 'lib/UdpSocket.cpp')
-rw-r--r-- | lib/UdpSocket.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/UdpSocket.cpp b/lib/UdpSocket.cpp index 7c99724..7645eaf 100644 --- a/lib/UdpSocket.cpp +++ b/lib/UdpSocket.cpp @@ -290,11 +290,12 @@ void UdpReceiver::m_run() private: atomic<bool>& m_stop; } autoSetStop(m_stop); - if(IN_MULTICAST(ntohl(inet_addr(m_mcastaddr.c_str())))){ + if (IN_MULTICAST(ntohl(inet_addr(m_mcastaddr.c_str())))) { m_sock.reinit(m_port, m_mcastaddr); m_sock.setMulticastSource(m_bindto.c_str()); m_sock.joinGroup(m_mcastaddr.c_str(), m_bindto.c_str()); - } else { + } + else { m_sock.reinit(m_port, m_bindto); } |