diff --git a/src/plugins/remotelinux/remotelinuxanalyzesupport.cpp b/src/plugins/remotelinux/remotelinuxanalyzesupport.cpp index 996e4e95279e3e38ae9f5a39cbd552babcbf8d57..de1a9efde1c9622114bb95d1fc28e8468a0a019e 100644 --- a/src/plugins/remotelinux/remotelinuxanalyzesupport.cpp +++ b/src/plugins/remotelinux/remotelinuxanalyzesupport.cpp @@ -60,8 +60,13 @@ RemoteLinuxQmlProfilerSupport::RemoteLinuxQmlProfilerSupport(RunControl *runCont m_portsGatherer = new PortsGatherer(runControl); addStartDependency(m_portsGatherer); + // The ports gatherer can safely be stopped once the process is running, even though it has to + // be started before. + addStopDependency(m_portsGatherer); + m_profiler = runControl->createWorker(runControl->runMode()); m_profiler->addStartDependency(this); + addStopDependency(m_profiler); } void RemoteLinuxQmlProfilerSupport::start()