13
0

Don't try to remove pending state file if the file doesn't exist

git-svn-id: svn://localhost/ardour2/branches/3.0@12869 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Tim Mayberry 2012-06-23 05:08:29 +00:00
parent d1fc7aa459
commit 695b666430

View File

@ -632,6 +632,8 @@ Session::remove_pending_capture_state ()
pending_state_file_path = Glib::build_filename (pending_state_file_path, legalize_for_path (_current_snapshot_name) + pending_suffix);
if (!Glib::file_test (pending_state_file_path, Glib::FILE_TEST_EXISTS)) return;
if (g_remove (pending_state_file_path.c_str()) != 0) {
error << string_compose(_("Could not remove pending capture state at path \"%1\" (%2)"),
pending_state_file_path, g_strerror (errno)) << endmsg;