summaryrefslogtreecommitdiffstats
path: root/src/libs/engine
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-06-14 18:23:57 +0000
committerDavid Robillard <d@drobilla.net>2006-06-14 18:23:57 +0000
commit5a7beed295e6c8cee627774b9ca4d2e0eff510c1 (patch)
treedf080d187fc75292a163d5ab7331b15027e81154 /src/libs/engine
parent52f5c887cf8d4149278d137684f8f1ee31231d65 (diff)
downloadingen-5a7beed295e6c8cee627774b9ca4d2e0eff510c1.tar.gz
ingen-5a7beed295e6c8cee627774b9ca4d2e0eff510c1.tar.bz2
ingen-5a7beed295e6c8cee627774b9ca4d2e0eff510c1.zip
Removed unused cruft from GTK client
git-svn-id: http://svn.drobilla.net/lad/grauph@37 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine')
-rw-r--r--src/libs/engine/ObjectSender.cpp6
-rw-r--r--src/libs/engine/events/DisconnectNodeEvent.cpp6
2 files changed, 9 insertions, 3 deletions
diff --git a/src/libs/engine/ObjectSender.cpp b/src/libs/engine/ObjectSender.cpp
index 9d3e535d..441cb2d9 100644
--- a/src/libs/engine/ObjectSender.cpp
+++ b/src/libs/engine/ObjectSender.cpp
@@ -90,8 +90,12 @@ ObjectSender::send_node(ClientInterface* client, const Node* node)
&& node->poly() == node->parent_patch()->internal_poly()
? 1 : 0);
- assert(node->plugin()->uri().length() > 0);
assert(node->path().length() > 0);
+ if (node->plugin()->uri().length() == 0) {
+ cerr << "Node " << node->path() << " plugin has no URI! Not sending." << endl;
+ return;
+ }
+
client->bundle_begin();
diff --git a/src/libs/engine/events/DisconnectNodeEvent.cpp b/src/libs/engine/events/DisconnectNodeEvent.cpp
index 17367dd4..4c4e19a7 100644
--- a/src/libs/engine/events/DisconnectNodeEvent.cpp
+++ b/src/libs/engine/events/DisconnectNodeEvent.cpp
@@ -127,11 +127,13 @@ void
DisconnectNodeEvent::post_process()
{
if (m_succeeded) {
- m_responder->respond_ok();
+ if (m_responder)
+ m_responder->respond_ok();
for (List<DisconnectionEvent*>::iterator i = m_disconnection_events.begin(); i != m_disconnection_events.end(); ++i)
(*i)->post_process();
} else {
- m_responder->respond_error("Unable to disconnect all ports.");
+ if (m_responder)
+ m_responder->respond_error("Unable to disconnect all ports.");
}
}