diff options
Diffstat (limited to 'libs/ardour/port.cc')
-rw-r--r-- | libs/ardour/port.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/port.cc b/libs/ardour/port.cc index 9cbdd14172..6ae0c5d92b 100644 --- a/libs/ardour/port.cc +++ b/libs/ardour/port.cc @@ -36,6 +36,7 @@ using namespace ARDOUR; AudioEngine* Port::_engine = 0; nframes_t Port::_port_offset = 0; nframes_t Port::_buffer_size = 0; +bool Port::_connecting_blocked = false; /** @param n Port short name */ Port::Port (std::string const & n, DataType t, Flags f) @@ -116,6 +117,9 @@ Port::connect (std::string const & other) int r = 0; + if (_connecting_blocked) + return r; + if (sends_output ()) { r = jack_connect (_engine->jack (), this_shrt.c_str (), other_shrt.c_str ()); } else { |