Send the error to chainpad when a patch is not sent
This commit is contained in:
@@ -60,7 +60,8 @@ define([
|
||||
});
|
||||
chainpad.onMessage(function(message, cb) {
|
||||
// -1 ==> no timeout, we may receive the callback only when we reconnect
|
||||
sframeChan.query('Q_RT_MESSAGE', message, function (err) {
|
||||
sframeChan.query('Q_RT_MESSAGE', message, function (_err, obj) {
|
||||
var err = _err || (obj && obj.error);
|
||||
if (!err) { evPatchSent.fire(); }
|
||||
cb(err);
|
||||
}, { timeout: -1 });
|
||||
|
||||
Reference in New Issue
Block a user