Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Commit

Permalink
(loadgen) fix a crash when fetch of include.js times out
Browse files Browse the repository at this point in the history
  • Loading branch information
lloyd committed Dec 8, 2011
1 parent 2c05b64 commit 4f2f2c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/load_gen/activities/include_only.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ client = require('../../wsapi_client.js');

exports.startFunc = function(cfg, cb) {
client.get(cfg, '/include.js', {}, undefined, function(r) {
if (r.code != 200) {
cb("for include.js fetch response code is not 200: " + r.code);
if (!r || r.code !== 200) {
cb("for include.js fetch response code is not 200: " + (r ? r.code : "no response"));
} else {
// XXX: check the checksum of body?
cb();
Expand Down

0 comments on commit 4f2f2c1

Please sign in to comment.