Fix report_send_time check.

(imported from commit eeb2dd9cb0861a5eeea6254ab9d6a3d818fb2ebd)
This commit is contained in:
Tim Abbott 2013-11-06 18:09:40 -05:00
parent 57aabc112d
commit d246189d98
1 changed files with 2 additions and 1 deletions

View File

@ -385,7 +385,8 @@ exports.send_times_log = [];
exports.send_times_data = {};
function maybe_report_send_times(message_id) {
var data = exports.send_times_data[message_id];
if (data.send_finished === undefined || data.received === undefined) {
if (data.send_finished === undefined || data.received === undefined ||
data.displayed === undefined) {
// We report the data once we have both the send and receive times
return;
}