add max queue length for notifications (#46)

This commit is contained in:
Lynn
2017-03-28 18:09:51 -07:00
committed by GitHub
parent 06e93cd9c3
commit 75d1342b28
5 changed files with 44 additions and 8 deletions

View File

@@ -383,9 +383,10 @@ electron.ipcMain.on(apiProxyCmds.addEvent, function(event, args) {
/* eslint-enable no-console */
let obj = liveObjs[args.objId];
let callbackFunc = function() {
let callbackFunc = function(result) {
event.sender.send(apiProxyCmds.eventCallback, {
callbackId: args.callbackId
callbackId: args.callbackId,
result: result
});
}
obj._callbacks[args.callbackId] = callbackFunc;