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 );