*maybe* fix issues with zombification during session loading
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 11 Sep 2013 20:33:40 +0000 (16:33 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 11 Sep 2013 20:33:40 +0000 (16:33 -0400)
libs/ardour/session.cc
libs/ardour/session_state.cc

index 6f0638bdc9d1f87e525be6f9056727604e36a625..e89808e8185deb867b392c4b59bb12420722dde9 100644 (file)
@@ -326,6 +326,16 @@ Session::Session (AudioEngine &eng,
        EndTimeChanged.connect_same_thread (*this, boost::bind (&Session::end_time_changed, this, _1));
 
        _is_new = false;
+
+       /* hook us up to the engine since we are now completely constructed */
+
+       BootMessage (_("Connect to engine"));
+
+       _engine.set_session (this);
+       _engine.reset_timebase ();
+
+       BootMessage (_("Session loading complete"));
+
 }
 
 Session::~Session ()
@@ -727,12 +737,6 @@ Session::when_engine_running ()
 
         initialize_latencies ();
 
-       /* hook us up to the engine */
-
-       BootMessage (_("Connect to engine"));
-       _engine.set_session (this);
-       _engine.reset_timebase ();
-
        return 0;
 }
 
index dbb2d4edcd16d413d1ec5c67545698c4e0749d80..d90346073c42fe4578ea49ca6e052057a1e67e4c 100644 (file)
@@ -308,8 +308,6 @@ Session::post_engine_init ()
 
        _state_of_the_state = Clean;
 
-       Port::set_connecting_blocked (false);
-
        DirtyChanged (); /* EMIT SIGNAL */
 
        if (_is_new) {
@@ -320,8 +318,6 @@ Session::post_engine_init ()
                state_was_pending = false;
        }
 
-       BootMessage (_("Session loading complete"));
-
        return 0;
 }