From 14dda0b09187dabe66f23e7485570e14e843fcae Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Mon, 10 Nov 2025 00:35:38 -0500 Subject: [PATCH] Fix continuous TOTP copy --- clip/copyArgument.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clip/copyArgument.go b/clip/copyArgument.go index 27ac67e..937a1a0 100644 --- a/clip/copyArgument.go +++ b/clip/copyArgument.go @@ -46,9 +46,10 @@ func CopyArgument(targetLocation string, field int) error { errorChan := make(chan error) go TOTPCopier(decSlice[2], field, errorChan, nil) // "done" is not needed because the process runs until the program is killed err = <-errorChan - if err != nil { // block until first successful copy + if err != nil { // handle error from first copy return errors.New("error encountered in TOTP refresh process: " + err.Error()) } + select {} // block indefinitely } else { // other copySubject = decSlice[realField] }