[Summary] Fixed race condition: "should_do_transport_work" must not be dropped to...
authorGZharun <grygoriiz@wavesglobal.com>
Wed, 25 Feb 2015 01:02:28 +0000 (03:02 +0200)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 29 Jun 2015 18:18:12 +0000 (14:18 -0400)
_butler->stop () is synchronous, so its safe to wait in this call for butler to finish it's work.

[Reviewed by] PDavis

libs/ardour/session_transport.cc

index d5adbc5b4535e792be2be6fe3c69e2e3fef01da9..4e93565f1159f11530f1126316a0c9d6ed9f2b97 100644 (file)
@@ -1789,8 +1789,6 @@ Session::engine_halted ()
        */
 
        if (_butler) {
-               g_atomic_int_set (&_butler->should_do_transport_work, 0);
-               set_post_transport_work (PostTransportWork (0));
                _butler->stop ();
        }