Browse Source

OSC: Fix dangling method on signal rename.

Closes #174
tags/non-daw-v1.2.0
Jonathan Moore Liles 9 years ago
parent
commit
f483957996
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      nonlib/OSC/Endpoint.C

+ 3
- 3
nonlib/OSC/Endpoint.C 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();


Loading…
Cancel
Save