summaryrefslogtreecommitdiffstats
path: root/src/client/ClientStore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/ClientStore.cpp')
-rw-r--r--src/client/ClientStore.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/client/ClientStore.cpp b/src/client/ClientStore.cpp
index be7d4186..48fa0d1e 100644
--- a/src/client/ClientStore.cpp
+++ b/src/client/ClientStore.cpp
@@ -459,9 +459,17 @@ ClientStore::connect(const Path& src_path,
}
void
-ClientStore::disconnect(const Path& src_path,
- const Path& dst_path)
+ClientStore::disconnect(const URI& src,
+ const URI& dst)
{
+ if (!Path::is_path(src) && !Path::is_path(dst)) {
+ std::cerr << "Bad disconnect notification " << src << " => " << dst << std::endl;
+ return;
+ }
+
+ const Path src_path(src.str());
+ const Path dst_path(dst.str());
+
SharedPtr<PortModel> src_port = PtrCast<PortModel>(object(src_path));
SharedPtr<PortModel> dst_port = PtrCast<PortModel>(object(dst_path));