mirror of
https://github.com/rclone/rclone.git
synced 2025-06-23 13:31:25 +02:00
Fix double close of abort channel - fixes #592
This commit is contained in:
parent
b4f2ada820
commit
b5faaf7116
@ -183,7 +183,9 @@ func (s *syncCopyMove) processError(err error) {
|
|||||||
defer s.errorMu.Unlock()
|
defer s.errorMu.Unlock()
|
||||||
switch {
|
switch {
|
||||||
case IsFatalError(err):
|
case IsFatalError(err):
|
||||||
close(s.abort)
|
if !s.aborting() {
|
||||||
|
close(s.abort)
|
||||||
|
}
|
||||||
s.fatalErr = err
|
s.fatalErr = err
|
||||||
case IsNoRetryError(err):
|
case IsNoRetryError(err):
|
||||||
s.noRetryErr = err
|
s.noRetryErr = err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user