We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a243ac6 commit 276eaa2Copy full SHA for 276eaa2
apps/android/lib.js
@@ -321,6 +321,7 @@ exports.httpHandler = (url,options) => {
321
if (options.method) req.method = options.method;
322
if (options.body) req.body = options.body;
323
if (options.headers) req.headers = options.headers;
324
+ req.timeout = options.timeout || 30000;
325
exports.gbSend(req);
326
//create the promise
327
var promise = new Promise(function(resolve,reject) {
@@ -329,7 +330,7 @@ exports.httpHandler = (url,options) => {
329
330
//if after "timeoutMillisec" it still hasn't answered -> reject
331
delete Bangle.httpRequest[options.id];
332
reject("Timeout");
- },options.timeout||30000)};
333
+ },req.timeout)};
334
});
335
return promise;
336
};
0 commit comments