Skip to content

Commit 3edf10f

Browse files
committed
android: pass HTTP request timeout to Gadgetbridge
1 parent 276eaa2 commit 3edf10f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

apps/android/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@
4646
arrival. (Needs Gadgetbridge nightly (either flavour) for now, or stable
4747
version 85 when it's out)
4848
0.43: Ensure listRecs doesn't list old-style recorded tracks (Otherwise Gadgetbridge fails parsing the filename)
49+
0.44: Pass HTTP request timeout to Gadgetbridge

apps/android/lib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ exports.httpHandler = (url,options) => {
330330
//if after "timeoutMillisec" it still hasn't answered -> reject
331331
delete Bangle.httpRequest[options.id];
332332
reject("Timeout");
333-
},req.timeout)};
333+
},req.timeout+500)};
334334
});
335335
return promise;
336336
};

apps/android/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "android",
33
"name": "Android Integration",
44
"shortName": "Android",
5-
"version": "0.43",
5+
"version": "0.44",
66
"description": "Display notifications/music/etc sent from the Gadgetbridge app on Android. This replaces the old 'Gadgetbridge' Bangle.js widget.",
77
"icon": "app.png",
88
"tags": "tool,system,messages,notifications,gadgetbridge",

0 commit comments

Comments
 (0)