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
391ba999
Commit
391ba999
authored
Oct 20, 2017
by
Don Gagne
Committed by
GitHub
Oct 20, 2017
Browse files
Merge pull request #5735 from tzekian12/patch-1
Update TCPLink.cc
parents
029e5e59
519948b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/comm/TCPLink.cc
View file @
391ba999
...
...
@@ -119,6 +119,8 @@ void TCPLink::_disconnect(void)
if
(
_socket
)
{
_socketIsConnected
=
false
;
_socket
->
deleteLater
();
// Make sure delete happens on correct thread
_socket
->
disconnectFromHost
();
// Disconnect tcp
_socket
->
waitForDisconnected
();
_socket
=
NULL
;
emit
disconnected
();
}
...
...
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