stop death on no session

pull/2350/head
John McLear 2014-11-30 21:21:58 +00:00
parent e9686c0d93
commit 6fea3a25f8
1 changed files with 4 additions and 4 deletions

View File

@ -838,10 +838,10 @@ exports.updatePadClients = function(pad, callback)
client.json.send(wireMsg);
}
sessioninfos[sid].time = currentTime;
sessioninfos[sid].rev = r;
if(sessioninfos[sid]){
sessioninfos[sid].time = currentTime;
sessioninfos[sid].rev = r;
}
callback(null);
}
], callback);