OSC: Don't fail if peer scan callback is not set!
This commit is contained in:
parent
16a4c0f51d
commit
f816742b65
|
@ -306,6 +306,7 @@ namespace OSC
|
|||
|
||||
DMESSAGE( "Peer %s has disconnected from signal %s", p->name, ps->path() );
|
||||
|
||||
if ( s->_connection_state_callback )
|
||||
s->_connection_state_callback( s, s->_connection_state_userdata );
|
||||
|
||||
return 0;
|
||||
|
@ -358,6 +359,7 @@ namespace OSC
|
|||
/* make a record of it ourselves */
|
||||
ps->_outgoing.push_back( s );
|
||||
|
||||
if ( s->_connection_state_callback )
|
||||
s->_connection_state_callback( s, s->_connection_state_userdata );
|
||||
|
||||
/* return 0; */
|
||||
|
@ -874,6 +876,7 @@ namespace OSC
|
|||
p->_scanning = false;
|
||||
DMESSAGE( "Done scanning %s", p->name );
|
||||
|
||||
if ( ep->_peer_scan_complete_callback )
|
||||
ep->_peer_scan_complete_callback(ep->_peer_scan_complete_userdata);
|
||||
}
|
||||
else if ( argc == 7 && p->_scanning )
|
||||
|
|
Loading…
Reference in New Issue