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
83a092f3
Commit
83a092f3
authored
Jun 15, 2014
by
Don Gagne
Browse files
deleteLater on _socket
This way the delete happens on the right thread.
parent
163383cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/comm/TCPLink.cc
View file @
83a092f3
...
@@ -199,7 +199,7 @@ bool TCPLink::disconnect()
...
@@ -199,7 +199,7 @@ bool TCPLink::disconnect()
if
(
_socket
)
if
(
_socket
)
{
{
_socketIsConnected
=
false
;
_socketIsConnected
=
false
;
delete
_socket
;
_socket
->
deleteLater
();
// Make sure delete happens on correct thread
_socket
=
NULL
;
_socket
=
NULL
;
emit
disconnected
();
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