mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 17:57:44 +08:00
cdfa0beafb
Before this change the cancelFunc could be called twice, once while handling the interrupt (CTRL-C) and once while unwinding the stack if the function happened to finish. This change ensure the cancelFunc is only called once by wrapping it in a sync.Once |
||
---|---|---|
.. | ||
atexit_other.go | ||
atexit_test.go | ||
atexit_unix.go | ||
atexit.go |