13
0

Defer session_loaded until AFTER lo_server_new.

This seems like the right thing to do, and -might- fix OSC on Windows.
This commit is contained in:
Ben Loftis 2016-02-15 16:55:21 -06:00
parent 14bf40cfe3
commit 136f705af9

View File

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