Watch before we start.

Linux and macOS are happy to watch after starting.  Our Windows support
library can't deal with such a case, though.

Linux is happy with the other order.  I'm about to find out if macOS is.

There are likely further Windows issues to deal with.
This commit is contained in:
Jean-Paul Calderone 2019-03-11 13:16:39 -04:00
parent 2205bf0fdd
commit 263755fb26

View File

@ -1181,8 +1181,8 @@ class Uploader(QueueMixin):
with action.context():
d = DeferredContext(defer.succeed(None))
d.addCallback(lambda ign: self._notifier.startReading())
d.addCallback(lambda ign: self._add_watch())
d.addCallback(lambda ign: self._notifier.startReading())
d.addCallback(lambda ign: self._count('dirs_monitored'))
d.addBoth(self._call_hook, 'started')
return d.addActionFinish()