Better transfer error handling

This commit is contained in:
Sybren A. Stüvel
2018-06-05 15:12:10 +02:00
parent 44c4ce3a69
commit fc144138d0
3 changed files with 16 additions and 4 deletions
+2 -1
View File
@@ -68,7 +68,8 @@ class FileCopier(transfer.FileTransferer):
# the main thread to inspect the queue and see which files were not
# copied. The one we just failed (due to this exception) should also
# be reported there.
self.queue.put((src, dst, act))
self.queue.put((src, dst, act), timeout=1.0)
self._error.set()
break
if files_transferred: