parent
c0113d1e7a
commit
fe51e322f3
|
@ -436,7 +436,15 @@ namespace OSC
|
||||||
|
|
||||||
Endpoint *ep = (Endpoint*)user_data;
|
Endpoint *ep = (Endpoint*)user_data;
|
||||||
|
|
||||||
Signal *o = ep->find_signal_by_path( name );
|
Peer *p = ep->find_peer_by_address( lo_message_get_source( msg ) );
|
||||||
|
|
||||||
|
if ( ! p )
|
||||||
|
{
|
||||||
|
WARNING( "Got signal removed notification from unknown peer." );
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
Signal *o = ep->find_peer_signal_by_path( p, name );
|
||||||
|
|
||||||
if ( ! o )
|
if ( ! o )
|
||||||
{
|
{
|
||||||
|
@ -450,7 +458,7 @@ namespace OSC
|
||||||
if ( ep->_peer_signal_notification_callback )
|
if ( ep->_peer_signal_notification_callback )
|
||||||
ep->_peer_signal_notification_callback( o, Signal::Removed, ep->_peer_signal_notification_userdata );
|
ep->_peer_signal_notification_callback( o, Signal::Removed, ep->_peer_signal_notification_userdata );
|
||||||
|
|
||||||
ep->_signals.remove( o );
|
p->_signals.remove(o);
|
||||||
|
|
||||||
delete o;
|
delete o;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue