From 3e932c9930dd137518eb9f221731a36186c433b9 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Mon, 3 Jun 2013 21:57:11 -0700 Subject: [PATCH] OSC: Rename OSC method when signal is renamed. --- nonlib/OSC/Endpoint.C | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nonlib/OSC/Endpoint.C b/nonlib/OSC/Endpoint.C index 4c532ee..2bf499e 100644 --- a/nonlib/OSC/Endpoint.C +++ b/nonlib/OSC/Endpoint.C @@ -92,6 +92,12 @@ namespace OSC { DMESSAGE( "Renaming signal %s to %s", this->path(), path ); + if ( _direction == Signal::Input ) + { + lo_server_del_method( _endpoint->_server, _path, NULL ); + lo_server_add_method( _endpoint->_server, path, NULL, _endpoint->osc_sig_handler, this ); + } + free( _path ); _path = strdup( path );