Skip to content

Commit

Permalink
MDL-37893 Always notify pending starts before dispatching chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 authored and mudrd8mz committed Feb 8, 2013
1 parent 176f08e commit 0411686
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ public function after_path($path) {
// currentdata, properly built // currentdata, properly built
$data = $this->currentdata[$path]; $data = $this->currentdata[$path];
unset($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 // TODO: If running under DEBUG_DEVELOPER notice about >1MB grouped chunks
// And, finally, dispatch it.
$this->dispatch_chunk($data); $this->dispatch_chunk($data);
} }
// Normal notification of path end // Normal notification of path end
Expand Down

0 comments on commit 0411686

Please sign in to comment.