From 136f705af97021969408d37ed5c313ff0b778ec4 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Mon, 15 Feb 2016 16:55:21 -0600 Subject: [PATCH] Defer session_loaded until AFTER lo_server_new. This seems like the right thing to do, and -might- fix OSC on Windows. --- libs/surfaces/osc/osc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index 7308941ac7..0565e24f60 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -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 */