diff options
Diffstat (limited to 'Functions/Zftp/zfautocheck')
-rw-r--r-- | Functions/Zftp/zfautocheck | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Functions/Zftp/zfautocheck b/Functions/Zftp/zfautocheck index abb994061..d06beca4f 100644 --- a/Functions/Zftp/zfautocheck +++ b/Functions/Zftp/zfautocheck @@ -15,6 +15,10 @@ # a successful open. local lastsession=$zflastsession +# Unset the delay counter from the progress meter in case there was an +# abnormal exit. +(( ${+zftpseconds} )) && unset zftpseconds + if [[ -z $ZFTP_HOST ]]; then zfopen || return 1 [[ $1 = *d* ]] || do_close=1 |