SyncEngine: make abort and closing more robust
authorOlivier Goffart <ogoffart@woboq.com>
Wed, 15 Jun 2016 15:01:00 +0000 (17:01 +0200)
committerOlivier Goffart <ogoffart@woboq.com>
Thu, 16 Jun 2016 06:26:33 +0000 (08:26 +0200)
commit92309013dae728b66c597697de7572b6d8e50f1a
tree7de5e26e60544d4e27bf436d4e8bf0245f54597d
parent4895589e4db1b2efa60eb66b572c4a939d4e055f
SyncEngine: make abort and closing more robust

We first need to set the abort flag to csync and then aborting the discovery
job, otherwise, the discovery thread could start a new job in the mean time.

We also need to make sure that the thread has existed before we destroy the
exclude list.
src/libsync/syncengine.cpp