Skip to content

Commit

Permalink
Merge pull request #13 from danielballan/fix-close-on-stop
Browse files Browse the repository at this point in the history
FIX: Actually close on stop
  • Loading branch information
mrakitin authored Jun 7, 2019
2 parents 1ef4f50 + 121cb05 commit 2da8318
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions suitcase/jsonl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,10 @@ def __call__(self, name, doc):
self._output_file.write(line)
if self._flush:
self._output_file.flush()
if name == 'stop':
self.close()
return name, doc

def stop(self, doc):
self.close()

def close(self):
self._manager.close()

Expand Down

0 comments on commit 2da8318

Please sign in to comment.