diff options
Diffstat (limited to 'libcrystfel/src/stream.c')
-rw-r--r-- | libcrystfel/src/stream.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index 519a1ca9..c1b32a4f 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -1304,6 +1304,9 @@ void write_geometry_file(Stream *st, const char *geom_filename) { rval = fgets(line, 1023, geom_fh); fputs(line, st->fh); } while ( rval != NULL ); + + fclose(geom_fh); + fprintf(st->fh, GEOM_END_MARKER"\n"); fflush(st->fh); } |