Skip to content

Commit

Permalink
Correction for issue geopython#49
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteggink committed Sep 3, 2016
1 parent 5995596 commit cf4357d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stetl/filters/xmlassembler.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ def invoke(self, packet):
# Valid element: consume and handle
self.consume_element(packet)

# Document is obviously not finished, reset EoD/EoS in packet
packet.set_end_of_stream(False)
packet.set_end_of_doc(False)

if packet.is_end_of_stream() or packet.is_end_of_doc() or len(self.element_arr) >= self.max_elements:
# EOF but still data in buffer: make doc
# log.info("Flush doc")
Expand Down

0 comments on commit cf4357d

Please sign in to comment.