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:
Maximilian Krambach 2018-10-17 13:13:31 +02:00
parent ff6ff616ae
commit 9b6ed6a80f

View File

@ -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(