From 170e352989f1c2ac4a5112b5f57bab94624bce0f Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 24 May 2015 10:50:13 +0200 Subject: [PATCH] JSBSim link: Fix similar issue as in #1600 --- src/comm/QGCJSBSimLink.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/comm/QGCJSBSimLink.cc b/src/comm/QGCJSBSimLink.cc index 9d2c60b19..ddca7f62e 100644 --- a/src/comm/QGCJSBSimLink.cc +++ b/src/comm/QGCJSBSimLink.cc @@ -2,7 +2,7 @@ QGroundControl Open Source Ground Control Station -(c) 2009 - 2011 QGROUNDCONTROL PROJECT +(c) 2009 - 2015 QGROUNDCONTROL PROJECT This file is part of the QGROUNDCONTROL project @@ -24,8 +24,7 @@ This file is part of the QGROUNDCONTROL project /** * @file * @brief Definition of UDP connection (server) for unmanned vehicles - * @see Flightgear Manual http://mapserver.flightgear.org/getstart.pdf - * @author Lorenz Meier + * @author Lorenz Meier * */ @@ -78,7 +77,7 @@ void QGCJSBSimLink::run() if (!mav) return; socket = new QUdpSocket(this); socket->moveToThread(this); - connectState = socket->bind(host, port); + connectState = socket->bind(host, port, QAbstractSocket::ReuseAddressHint); QObject::connect(socket, SIGNAL(readyRead()), this, SLOT(readBytes())); -- 2.22.0