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
This commit is contained in:
parent
ff6ff616ae
commit
9b6ed6a80f
@ -38,7 +38,7 @@ import { Connection } from './Connection';
|
|||||||
* @returns {Promise<GpgME>}
|
* @returns {Promise<GpgME>}
|
||||||
* @async
|
* @async
|
||||||
*/
|
*/
|
||||||
function init ({ timeout = 500 } = {}){
|
function init ({ timeout = 1000 } = {}){
|
||||||
return new Promise(function (resolve, reject){
|
return new Promise(function (resolve, reject){
|
||||||
const connection = new Connection;
|
const connection = new Connection;
|
||||||
connection.checkConnection(false, timeout).then(
|
connection.checkConnection(false, timeout).then(
|
||||||
|
Loading…
Reference in New Issue
Block a user