Propagator: change order of destruction
authorOlivier Goffart <ogoffart@woboq.com>
Thu, 16 Mar 2017 13:19:36 +0000 (14:19 +0100)
committerOlivier Goffart <ogoffart@woboq.com>
Thu, 16 Mar 2017 13:24:25 +0000 (14:24 +0100)
commit21909cae04a89d4499f6771284f386746d4b0cd5
treee1b083c78afc25f5f0356b9642c58449b123b6f8
parent176ea20fef13c66590758d42e5240780c13f84ed
Propagator: change order of destruction

The destructor of the PropagateItemJob will access the propagator's
_activeJobList. So the _rootJob needs to be destroyed before it.
Order of destruction is the reverse of the order of the members in
the class. So put it at the end so it can be destroyed first.

(This made TestSyncEngine::testDirDownloadWithError crash sometimes
in the master branch)
src/libsync/owncloudpropagator.h