Defer session_loaded until AFTER lo_server_new.
authorBen Loftis <ben@harrisonconsoles.com>
Mon, 15 Feb 2016 22:55:21 +0000 (16:55 -0600)
committerBen Loftis <ben@harrisonconsoles.com>
Mon, 15 Feb 2016 22:55:21 +0000 (16:55 -0600)
This seems like the right thing to do, and -might- fix OSC on Windows.

libs/surfaces/osc/osc.cc

index 7308941ac7c23957deb54f1c36de3885050ae0d8..0565e24f609bab1f0be43f75f9a0ea86e2940e1d 100644 (file)
@@ -88,7 +88,6 @@ OSC::OSC (Session& s, uint32_t port)
 {
        _instance = this;
 
-       session_loaded (s);
        session->Exported.connect (*this, MISSING_INVALIDATOR, boost::bind (&OSC::session_exported, this, _1, _2), this);
 }
 
@@ -227,6 +226,8 @@ OSC::start ()
 
        register_callbacks();
 
+       session_loaded (@session);
+
        // lo_server_thread_add_method(_sthread, NULL, NULL, OSC::_dummy_handler, this);
 
        /* startup the event loop thread */