MDL-37893 Always notify pending starts before dispatching chunk

This commit is contained in:
Eloy Lafuente (stronk7) 2013-02-07 20:52:28 +01:00
parent 2c06c715c7
commit 43b83ea19e

View File

@ -104,7 +104,10 @@ abstract class grouped_parser_processor extends simplified_parser_processor {
// currentdata, properly built
$data = $this->currentdata[$path];
unset($this->currentdata[$path]);
// Always, before dispatching any chunk, send all pending start notifications.
$this->process_pending_startend_notifications($path, 'start');
// TODO: If running under DEBUG_DEVELOPER notice about >1MB grouped chunks
// And, finally, dispatch it.
$this->dispatch_chunk($data);
}
// Normal notification of path end