respond to GET_FILE_SIZE rpc calls

This commit is contained in:
ansuz
2017-03-15 15:55:25 +01:00
parent d0466a2052
commit 61fc4a3f86
2 changed files with 13 additions and 2 deletions

View File

@@ -214,7 +214,7 @@ const handleMessage = function (ctx, user, msg) {
var rpc_call = parsed.slice(1);
// slice off the sequence number and pass in the rest of the message
ctx.rpc(rpc_call, function (err, output) {
ctx.rpc(ctx, rpc_call, function (err, output) {
if (err) {
console.error('[' + err + ']', output); // TODO make this disableable
sendMsg(ctx, user, [seq, 'ACK']);