summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/remoteserverconnection.h
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@theqtcompany.com>2015-01-29 09:34:06 +0100
committerKai Koehne <kai.koehne@theqtcompany.com>2015-02-02 13:33:08 +0000
commit4e1d375dc8f8849582aca147b63432bc9bb3deb4 (patch)
tree6333fcd9790ee11ff77dd1d3886a8083df77ac01 /src/libs/installer/remoteserverconnection.h
parent92b238a41ef5d781ad4db722b6f69ec920864f69 (diff)
Make sure RemoteServerConnection is properly shut down
QThreadServerConnection is automatically deleted via deleteLater on exit. Anyhow, TcpServer::shutdown() also tries to quit() all child threads by going through the list of children. Making the QThread a child of TcpServer activates this behavior again. Change-Id: If1639ae2c9cd74a83b8ff1814aa2131d9016de14 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/remoteserverconnection.h')
-rw-r--r--src/libs/installer/remoteserverconnection.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/installer/remoteserverconnection.h b/src/libs/installer/remoteserverconnection.h
index 70afaeceb..b7c428c27 100644
--- a/src/libs/installer/remoteserverconnection.h
+++ b/src/libs/installer/remoteserverconnection.h
@@ -56,7 +56,8 @@ class RemoteServerConnection : public QThread
Q_DISABLE_COPY(RemoteServerConnection)
public:
- RemoteServerConnection(qintptr socketDescriptor, const QString &authorizationKey);
+ RemoteServerConnection(qintptr socketDescriptor, const QString &authorizationKey,
+ QObject *parent);
void run() Q_DECL_OVERRIDE;