From 1769c2e0d66b1c4dd2c85d76f2313ca947a84e64 Mon Sep 17 00:00:00 2001 From: WebFreak001 Date: Sun, 25 Mar 2018 11:26:23 +0200 Subject: [PATCH] Fix introspection crash when binding on `/` --- source/ddbus/router.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ddbus/router.d b/source/ddbus/router.d index d4017a1..9aeb55d 100644 --- a/source/ddbus/router.d +++ b/source/ddbus/router.d @@ -181,8 +181,8 @@ class MessageRouter { auto children = callTable.byKey() .filter!(a => (a.path.startsWith(childPath)) && !a.signal)().map!( - (s) => s.path.chompPrefix(childPath)).map!((s) => s.splitter('/') - .front).array().sort().uniq(); + (s) => s.path.chompPrefix(childPath)).map!((s) => s.findSplit("/")[0]) + .array().sort().uniq(); foreach (child; children) { formattedWrite(app, ``, child);