From d947c2db133da24d1df4680617ddaa28ce2c1da0 Mon Sep 17 00:00:00 2001 From: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com> Date: Tue, 14 Jun 2022 11:47:04 -0600 Subject: [PATCH] fixes #1169 (#1533) * fixes #1169 * consolidate trim Co-authored-by: J M <2364004+Blu-J@users.noreply.github.com> Co-authored-by: J M <2364004+Blu-J@users.noreply.github.com> --- backend/src/net/tor.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/net/tor.rs b/backend/src/net/tor.rs index f0dedfe95..3326c5258 100644 --- a/backend/src/net/tor.rs +++ b/backend/src/net/tor.rs @@ -351,7 +351,9 @@ impl TorControllerInner { .get_info("onions/current") .await? .lines() - .map(|l| l.trim().parse().with_kind(ErrorKind::Tor)) + .map(|l| l.trim()) + .filter(|l| !l.is_empty()) + .map(|l| l.parse().with_kind(ErrorKind::Tor)) .collect() } }