Skip to content

Handle smap read result in the correct thread

David Edmundson requested to merge work/smaps_cleanup into master

We set the context to "this" so we should auto disconnect when the Processes object is destroyed. But Qt::DirectConnection means that is run in the runner thread.

It is possible to have a scenario where "this" is active when the connection is made, but destroyed before we get to this line.

BUG: 428160

But scoping the connect to Processes existing we would have leaked the worker if Processes got destroyed whilst the worker was running.

CCBUG: 428048

Merge request reports