From d9cd7ec3cf8335616f3fd1871b0934076413086c Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 17 Oct 2025 00:19:58 +0000 Subject: [PATCH] race-the-beam in shares --- copyparty/httpcli.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 5da90a8f..c7f1dd58 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -6560,9 +6560,10 @@ class HttpCli(object): return self.tx_zget(abspath) if not add_og or not og_fn: - return self.tx_file( - abspath, None if st.st_size or "nopipe" in vn.flags else vn.realpath - ) + if st.st_size or "nopipe" in vn.flags: + return self.tx_file(abspath, None) + else: + return self.tx_file(abspath, vn.get_dbv("")[0].realpath) elif is_dir and not self.can_read: if use_dirkey: