Skip to content

Commit

Permalink
Transmission archive fix (#834)
Browse files Browse the repository at this point in the history
* crash fix for missing transmissions

* better fix
  • Loading branch information
taclane committed Jul 11, 2023
1 parent b303615 commit a84090b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions trunk-recorder/call_concluder/call_concluder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,11 @@ void remove_call_files(Call_Data_t call_info) {
boost::filesystem::path target_file = boost::filesystem::path(fs::path(call_info.filename ).replace_filename(fs::path(t.filename).filename()));
boost::filesystem::path transmission_file = t.filename;
//boost::filesystem::path target_file = boost::filesystem::path(call_info.filename).replace_filename(transmission_file.filename()); // takes the capture dir from the call file and adds the transmission filename to it
boost::filesystem::copy_file(transmission_file, target_file);


// Only move transmission wavs if they exist
if (checkIfFile(t.filename)) {
boost::filesystem::copy_file(transmission_file, target_file);
}
}
}

Expand Down

0 comments on commit a84090b

Please sign in to comment.