Skip to content

Commit

Permalink
[osc] crashfix when receiving an OSC message during the generic_devic…
Browse files Browse the repository at this point in the history
…e creation
  • Loading branch information
Guillaume Buisson authored and jcelerier committed Mar 24, 2024
1 parent fff4acb commit ac2f5da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ossia/network/osc/osc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,11 @@ bool osc_protocol::echo_incoming_message(
void osc_protocol::on_received_message(
const oscpack::ReceivedMessage& m, const oscpack::IpEndpointName& ip)
{
[[unlikely]] if(!m_device)
{
return;
}

[[unlikely]] if(m_learning)
{
auto already_learned = ossia::net::osc_learn(&m_device->get_root_node(), m);
Expand Down

0 comments on commit ac2f5da

Please sign in to comment.