OSC: Fix dangling method on signal rename.

Closes #174
pull/186/head
Jonathan Moore Liles 2015-10-02 17:38:54 -07:00
parent cfe4aec158
commit f483957996
1 changed files with 3 additions and 3 deletions

View File

@ -93,11 +93,11 @@ namespace OSC
DMESSAGE( "Renaming signal %s to %s", this->path(), new_path );
if ( _direction == Signal::Input )
{
/* if ( _direction == Signal::Input ) */
/* { */
lo_server_del_method( _endpoint->_server, _path, NULL );
lo_server_add_method( _endpoint->_server, new_path, NULL, _endpoint->osc_sig_handler, this );
}
/* } */
for ( std::list<Peer*>::iterator i = _endpoint->_peers.begin();
i != _endpoint->_peers.end();