OSCReceiver::ListenerWithOSCAddress issue

Hey guys, It seems that there is an issue with callbacks to OSCReceiver::listenerWithOSCAddress.

Message loop listeners are currently being called on the realtime thread as well as the message loop thread and the realtime listeners are not being called at all.

Here is the offending code from juce_OSCReceiver.cpp.

void callRealtimeListenersWithAddress (const OSCMessage& message)
    for (auto& entry : listenersWithAddress)
        if (auto* listener = entry.second)
            if (message.getAddressPattern().matches (entry.first))
                listener->oscMessageReceived (message);

This method should be using “realtimeListenersWithAddress” for callbacks.

Cheers :slight_smile:

Oops! Thanks for the heads-up, I’ll have a look at that.

1 Like