don't bother doing port stuff if session is being deleted

git-svn-id: svn://localhost/ardour2/branches/3.0@6240 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2009-12-01 13:19:50 +00:00
parent 1e4280c9cd
commit 28d7542d23

View File

@ -484,6 +484,10 @@ PortMatrix::setup_global_ports ()
void
PortMatrix::setup_all_ports ()
{
if (_session.deletion_in_progress()) {
return;
}
ENSURE_GUI_THREAD (mem_fun (*this, &PortMatrix::setup_all_ports));
setup_ports (0);