From fb14a8c250ae7c0b38676241a46eabbf433f4195 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 26 Jan 2018 09:55:19 +0100 Subject: {proto,tracker}-udp: fix misguided SO_REUSEADDR --- proto-udp/ftnoir_protocol_ftn.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'proto-udp/ftnoir_protocol_ftn.cpp') diff --git a/proto-udp/ftnoir_protocol_ftn.cpp b/proto-udp/ftnoir_protocol_ftn.cpp index a4a924b1..4e846114 100644 --- a/proto-udp/ftnoir_protocol_ftn.cpp +++ b/proto-udp/ftnoir_protocol_ftn.cpp @@ -15,7 +15,10 @@ udp::udp() { set_dest_address(); - QObject::connect(s.b.get(), &bundle_::changed, this, &udp::set_dest_address); + + QObject::connect(s.b.get(), &bundle_::changed, + this, &udp::set_dest_address, + Qt::QueuedConnection); } void udp::pose(const double *headpose) { @@ -33,7 +36,7 @@ void udp::set_dest_address() module_status udp::initialize() { - if (outSocket.bind(QHostAddress::Any, 0, QUdpSocket::ShareAddress | QUdpSocket::ReuseAddressHint)) + if (outSocket.bind(QHostAddress::Any, 0, QUdpSocket::DontShareAddress)) return status_ok(); else return error(tr("Can't bind socket: %1").arg(outSocket.errorString())); -- cgit v1.2.3