android: pass HTTP request timeout to Gadgetbridge

master
Flaparoo 2025-04-24 21:48:52 +08:00
parent 276eaa22f5
commit 3edf10fe0b
3 changed files with 3 additions and 2 deletions

View File

@ -46,3 +46,4 @@
arrival. (Needs Gadgetbridge nightly (either flavour) for now, or stable arrival. (Needs Gadgetbridge nightly (either flavour) for now, or stable
version 85 when it's out) version 85 when it's out)
0.43: Ensure listRecs doesn't list old-style recorded tracks (Otherwise Gadgetbridge fails parsing the filename) 0.43: Ensure listRecs doesn't list old-style recorded tracks (Otherwise Gadgetbridge fails parsing the filename)
0.44: Pass HTTP request timeout to Gadgetbridge

View File

@ -330,7 +330,7 @@ exports.httpHandler = (url,options) => {
//if after "timeoutMillisec" it still hasn't answered -> reject //if after "timeoutMillisec" it still hasn't answered -> reject
delete Bangle.httpRequest[options.id]; delete Bangle.httpRequest[options.id];
reject("Timeout"); reject("Timeout");
},req.timeout)}; },req.timeout+500)};
}); });
return promise; return promise;
}; };

View File

@ -2,7 +2,7 @@
"id": "android", "id": "android",
"name": "Android Integration", "name": "Android Integration",
"shortName": "Android", "shortName": "Android",
"version": "0.43", "version": "0.44",
"description": "Display notifications/music/etc sent from the Gadgetbridge app on Android. This replaces the old 'Gadgetbridge' Bangle.js widget.", "description": "Display notifications/music/etc sent from the Gadgetbridge app on Android. This replaces the old 'Gadgetbridge' Bangle.js widget.",
"icon": "app.png", "icon": "app.png",
"tags": "tool,system,messages,notifications,gadgetbridge", "tags": "tool,system,messages,notifications,gadgetbridge",