forked from qt-creator/qt-creator
QmlProfiler: manage premature disconnection when app killed
The profiler tool was assuming that the socket would get disconnected after the application was stopped by the user. Sometimes it is not the case. This patch manages the oposite situation gracefully. Change-Id: I4ae439bf2ce6caece37e97f735e980d18c446df0 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
@@ -236,6 +236,11 @@ void QmlProfilerClientManager::connectToClient()
|
||||
}
|
||||
}
|
||||
|
||||
bool QmlProfilerClientManager::isConnected() const
|
||||
{
|
||||
return d->connection && d->connection->isConnected();
|
||||
}
|
||||
|
||||
void QmlProfilerClientManager::disconnectClient()
|
||||
{
|
||||
// this might be actually be called indirectly by QDDConnectionPrivate::readyRead(), therefore allow
|
||||
|
||||
Reference in New Issue
Block a user