Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
3d4f2d8f
Commit
3d4f2d8f
authored
Aug 22, 2019
by
Gus Grubba
Browse files
Flag thread blockers
parent
604e12f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Microhard/MicrohardHandler.cc
View file @
3d4f2d8f
...
...
@@ -51,6 +51,7 @@ MicrohardHandler::_start(uint16_t port, QHostAddress addr)
QObject
::
connect
(
_tcpSocket
,
&
QIODevice
::
readyRead
,
this
,
&
MicrohardHandler
::
_readBytes
);
qCDebug
(
MicrohardLog
)
<<
"Connecting to"
<<
addr
;
_tcpSocket
->
connectToHost
(
addr
,
port
);
//-- TODO: This has to be removed. It's blocking the main thread.
if
(
!
_tcpSocket
->
waitForConnected
(
1000
))
{
emit
connected
(
0
);
close
();
...
...
src/Taisync/TaisyncHandler.cc
View file @
3d4f2d8f
...
...
@@ -65,6 +65,7 @@ TaisyncHandler::_start(uint16_t port, QHostAddress addr)
QObject
::
connect
(
_tcpSocket
,
&
QIODevice
::
readyRead
,
this
,
&
TaisyncHandler
::
_readBytes
);
qCDebug
(
TaisyncLog
)
<<
"Connecting to"
<<
addr
;
_tcpSocket
->
connectToHost
(
addr
,
port
);
//-- TODO: This has to be removed. It's blocking the main thread.
if
(
!
_tcpSocket
->
waitForConnected
(
1000
))
{
close
();
return
false
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment