aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaximilian Krambach <[email protected]>2018-10-17 11:13:31 +0000
committerMaximilian Krambach <[email protected]>2018-10-17 11:13:31 +0000
commit9b6ed6a80fc78927de32430706c5b25c1bf07178 (patch)
tree5de3b6bb9ef6c10c7e318b93ecaf4c4e8ecf9b5d
parentpython: Auto-check for all installed python versions. (diff)
downloadgpgme-9b6ed6a80fc78927de32430706c5b25c1bf07178.tar.gz
gpgme-9b6ed6a80fc78927de32430706c5b25c1bf07178.zip
js: increase default startup timeout
-- * src/index.js: change the init default if none is given, so that all initialization defaults line up to 1000 miliseconds
-rw-r--r--lang/js/src/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/js/src/index.js b/lang/js/src/index.js
index b8e4274d..db29afe1 100644
--- a/lang/js/src/index.js
+++ b/lang/js/src/index.js
@@ -38,7 +38,7 @@ import { Connection } from './Connection';
* @returns {Promise<GpgME>}
* @async
*/
-function init ({ timeout = 500 } = {}){
+function init ({ timeout = 1000 } = {}){
return new Promise(function (resolve, reject){
const connection = new Connection;
connection.checkConnection(false, timeout).then(