Skip to content
Snippets Groups Projects
Commit 6e5b02b2 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Setattribute.cc: move cdo_finish() to close (bug fix)

parent 37f28ebe
No related branches found
No related tags found
1 merge request!119M214003/develop
......@@ -366,7 +366,6 @@ public:
void
init(void *process)
{
cdo_initialize(process);
cdo_operator_add("setattribute", 0, 0, "attributes");
......@@ -419,6 +418,7 @@ public:
varListInit(varList1, vlistID1);
}
void
run()
{
......@@ -449,21 +449,23 @@ public:
tsID++;
}
}
void
close()
{
cdo_stream_close(streamID1);
cdo_stream_close(streamID2);
cdo_finish();
}
};
void *
Setattribute(void *process)
{
cdo_finish();
ModuleSetattribute setattribute;
setattribute.init(process);
setattribute.run();
setattribute.close();
return nullptr;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment