prevent periodic auto-save from causing GUI deadlock waiting for the Locations lock to be released while export-ranges happens. this fix might be updated with a better one later.

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3479 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2008-06-19 00:24:13 +00:00
parent 0622d3c06a
commit a64926234f

View file

@ -532,6 +532,14 @@ ARDOUR_UI::save_ardour_state ()
gint
ARDOUR_UI::autosave_session ()
{
if (g_main_depth() > 1) {
/* inside a recursive main loop,
give up because we may not be able to
take a lock.
*/
return 1;
}
if (!Config->get_periodic_safety_backups())
return 1;