Permalink
Browse files

Fixed a critical bug

  • Loading branch information...
1 parent ab332c9 commit 386d0bf83b267443442e8e0e2d728f06a5b956de @penartur committed May 5, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/benchmark.js
View
6 lib/benchmark.js
@@ -69,11 +69,11 @@ Benchmark.prototype.init = function (done) {
Benchmark.prototype.doRun = function (simultaneousRequests, callback, over) {
this.init((function () {
- var context = new BenchmarkContext(this, simultaneousRequests, callback);
- context.run(function (simultaneousRequests, stats) {
+ var context = new BenchmarkContext(this, simultaneousRequests, function (simultaneousRequests, stats) {
callback(simultaneousRequests, stats);
over();
- })
+ });
+ context.run()
}).bind(this));
}

0 comments on commit 386d0bf

Please sign in to comment.