Skip to content

application: Fix setting connect callback for OnOffApplication

Many Socket subclasses (e.g., UdpSocketImpl) notify that a connection succeeded or not (by calling NotifyConnectionSucceeded() or NotifyConnectionFailed()) directly within the Connect() method.

OnOffApplication::StartApplication () sets the connect callback after the call to Connect(), thus missing the notification about whether the connection succeeded or not.

Merge request reports