UDP transport shutdown fixed
This commit is contained in:
@@ -154,7 +154,7 @@ inline int sendto(int s, const char *buf, size_t len, int flags, const struct so
|
||||
|
||||
|
||||
// wait for send thread to exit cleanly
|
||||
if (waitForThreadToComplete)
|
||||
if (_thread.get() && waitForThreadToComplete)
|
||||
{
|
||||
if (!_shutdownEvent.wait(5.0))
|
||||
{
|
||||
|
||||
@@ -4666,7 +4666,8 @@ namespace epics {
|
||||
localMulticastTransport->start();
|
||||
|
||||
m_udpTransports.push_back(transport);
|
||||
m_udpTransports.push_back(transport2);
|
||||
if (transport2)
|
||||
m_udpTransports.push_back(transport2);
|
||||
m_udpTransports.push_back(localMulticastTransport);
|
||||
|
||||
}
|
||||
|
||||
@@ -476,7 +476,8 @@ void ServerContextImpl::initializeBroadcastTransport()
|
||||
localMulticastTransport->start();
|
||||
|
||||
_udpTransports.push_back(transport);
|
||||
_udpTransports.push_back(transport2);
|
||||
if(transport2)
|
||||
_udpTransports.push_back(transport2);
|
||||
_udpTransports.push_back(localMulticastTransport);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user