Browse Source

WTF is the error?

master
Menci 6 years ago
parent
commit
c29cde890b
  1. 4
      modules/socketio.js

4
modules/socketio.js

@ -240,6 +240,7 @@ function updateProgress(taskId, data) {
score: finalResult.score score: finalResult.score
}; };
forAllClients(detailProgressNamespace, taskId, (client) => { forAllClients(detailProgressNamespace, taskId, (client) => {
try {
winston.debug(`Pushing progress update to ${client}`); winston.debug(`Pushing progress update to ${client}`);
if (clientDetailProgressList[client] && clientDisplayConfigList[client]) { if (clientDetailProgressList[client] && clientDisplayConfigList[client]) {
const original = clientDetailProgressList[client].content; const original = clientDetailProgressList[client].content;
@ -254,6 +255,9 @@ function updateProgress(taskId, data) {
}); });
clientDetailProgressList[client].version++; clientDetailProgressList[client].version++;
} }
} catch (e) {
console.log(e);
}
}); });
} }
exports.updateProgress = updateProgress; exports.updateProgress = updateProgress;

Loading…
Cancel
Save