diff options
author | Maximilian Krambach <[email protected]> | 2018-10-17 11:13:31 +0000 |
---|---|---|
committer | Maximilian Krambach <[email protected]> | 2018-10-17 11:13:31 +0000 |
commit | 9b6ed6a80fc78927de32430706c5b25c1bf07178 (patch) | |
tree | 5de3b6bb9ef6c10c7e318b93ecaf4c4e8ecf9b5d | |
parent | python: Auto-check for all installed python versions. (diff) | |
download | gpgme-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.js | 2 |
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( |