Skip to content

Commit

Permalink
trace reading: only bind to the first tracingComplete event.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jul 29, 2016
1 parent e8bb926 commit fe634e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lighthouse-core/gather/drivers/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ class Driver {
endTrace() {
return new Promise((resolve, reject) => {
// When the tracing has ended this will fire with a stream handle.
this.on('Tracing.tracingComplete', streamHandle => {
this.once('Tracing.tracingComplete', streamHandle => {
this._readTraceFromStream(streamHandle)
.then(traceContents => resolve(traceContents));
});
Expand Down

0 comments on commit fe634e7

Please sign in to comment.