1
0
mirror of https://github.com/rclone/rclone.git synced 2025-01-24 12:56:36 +02:00
Nick Craig-Wood cdfa0beafb lib/atexit: ensure OnError only calls cancel function once
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
2023-03-22 12:50:58 +00:00
..
2023-02-04 13:32:26 +01:00
2022-11-07 11:41:47 +00:00
2021-10-20 22:56:19 +02:00
2022-11-07 11:41:47 +00:00
2022-11-07 11:41:47 +00:00
2020-10-14 15:21:31 +01:00
2022-11-07 11:41:47 +00:00