Browse Source

OSC: Fix signal lookup in removal notification handler.

Closes #176
tags/non-daw-v1.2.0
Jonathan Moore Liles 8 years ago
parent
commit
fe51e322f3
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      nonlib/OSC/Endpoint.C

+ 10
- 2
nonlib/OSC/Endpoint.C View File

@@ -435,8 +435,16 @@ namespace OSC
const char *name = &argv[0]->s;
Endpoint *ep = (Endpoint*)user_data;

Peer *p = ep->find_peer_by_address( lo_message_get_source( msg ) );
Signal *o = ep->find_signal_by_path( name );
if ( ! p )
{
WARNING( "Got signal removed notification from unknown peer." );
return 0;
}

Signal *o = ep->find_peer_signal_by_path( p, name );

if ( ! o )
{
@@ -450,7 +458,7 @@ namespace OSC
if ( ep->_peer_signal_notification_callback )
ep->_peer_signal_notification_callback( o, Signal::Removed, ep->_peer_signal_notification_userdata );
ep->_signals.remove( o );
p->_signals.remove(o);

delete o;



Loading…
Cancel
Save