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

Loading…
Cancel
Save