From 9b6ed6a80fc78927de32430706c5b25c1bf07178 Mon Sep 17 00:00:00 2001 From: Maximilian Krambach Date: Wed, 17 Oct 2018 13:13:31 +0200 Subject: [PATCH] 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 --- lang/js/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} * @async */ -function init ({ timeout = 500 } = {}){ +function init ({ timeout = 1000 } = {}){ return new Promise(function (resolve, reject){ const connection = new Connection; connection.checkConnection(false, timeout).then(