summaryrefslogtreecommitdiffhomepage
path: root/tracker-udp
diff options
context:
space:
mode:
authorsheepsskullcity <sheepsskullcity@yahoo.com>2016-08-20 12:59:06 +0300
committerGitHub <noreply@github.com>2016-08-20 12:59:06 +0300
commit30455de98f37f7070b13880ec9ea0d52b044889f (patch)
tree5f290763bac72b96d571fe1daadc26fabb017e40 /tracker-udp
parent109b6dd280e5cc6129f9ea739f1ab4b545cd593a (diff)
Update ftnoir_tracker_udp.cpp
On success, bind() function returns true. So while(!should_quit) loop was always skipped.
Diffstat (limited to 'tracker-udp')
-rw-r--r--tracker-udp/ftnoir_tracker_udp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-udp/ftnoir_tracker_udp.cpp b/tracker-udp/ftnoir_tracker_udp.cpp
index 8438d48f..64a0aa44 100644
--- a/tracker-udp/ftnoir_tracker_udp.cpp
+++ b/tracker-udp/ftnoir_tracker_udp.cpp
@@ -22,7 +22,7 @@ void FTNoIR_Tracker::run()
QByteArray datagram;
datagram.resize(sizeof(last_recv_pose));
- should_quit = sock.bind(QHostAddress::Any, quint16(s.port), QUdpSocket::ShareAddress | QUdpSocket::ReuseAddressHint);
+ should_quit = !sock.bind(QHostAddress::Any, quint16(s.port), QUdpSocket::ShareAddress | QUdpSocket::ReuseAddressHint);
while (!should_quit)
{