Commit 8e8d7c9f authored by Sebastien Petitdemange's avatar Sebastien Petitdemange
Browse files

Fixed a deadlock in manual saving

parent e737aa5b
......@@ -1131,12 +1131,13 @@ void CtSaving::writeFrame(int aFrameNumber, int aNbFrames)
_updateParameters();
SavingMode saving_mode = getAcqSavingMode();
ManagedMode managed_mode = getManagedMode();
wait_and_cleanup_ready_flag.toggleReadyFlag();
if (saving_mode != Manual)
THROW_CTL_ERROR(Error) << "Manual saving is only permitted when "
"saving mode == Manual";
wait_and_cleanup_ready_flag.toggleReadyFlag();
ManagedMode managed_mode = getManagedMode();
if(managed_mode == Software)
{
Data anImage2Save;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment