Vapor: handle export abort

This commit is contained in:
Robin Gareus 2024-03-06 18:35:08 +01:00
parent 922ad14217
commit 77e7470270
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 3 additions and 0 deletions

View File

@ -124,6 +124,9 @@ ExportHandler::ExportHandler (Session & session)
ExportHandler::~ExportHandler ()
{
if (export_status->aborted () && !current_timespan->vapor ().empty () && session.surround_master ()) {
session.surround_master ()->surround_return ()->finalize_export ();
}
graph_builder->cleanup (export_status->aborted () );
}