Prevent timeout when restoring drive

This commit is contained in:
yflory
2018-07-19 17:51:38 +02:00
parent 2be78deb93
commit d816a2ed9f
4 changed files with 18 additions and 7 deletions

View File

@@ -110,6 +110,8 @@ define([
value: data
}, function (obj) {
cb(obj);
}, {
timeout: 5 * 60 * 1000
});
};
common.addSharedFolder = function (secret, cb) {
@@ -1328,12 +1330,12 @@ define([
});
});
postMessage = function (cmd, data, cb) {
postMessage = function (cmd, data, cb, opts) {
cb = cb || function () {};
chan.query(cmd, data, function (err, data) {
if (err) { return void cb ({error: err}); }
cb(data);
});
}, opts);
};
console.log('Posting CONNECT');