mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Extended message timeout and modified the reconnect function. (#2234)
Modify the reconnect function to set a default connection timeout of 1500 milliseconds.
This commit is contained in:
parent
f673a2d4ee
commit
be74ac2474
1 changed files with 2 additions and 2 deletions
|
|
@ -806,10 +806,10 @@ keepass.disableAutomaticReconnect = function() {
|
|||
keepass.reconnectLoop = null;
|
||||
};
|
||||
|
||||
keepass.reconnect = async function(tab, connectionTimeout) {
|
||||
keepass.reconnect = async function(tab = null, connectionTimeout = 1500) {
|
||||
keepassClient.connectToNative();
|
||||
keepass.generateNewKeyPair();
|
||||
const keyChangeResult = await keepass.changePublicKeys(tab, true, connectionTimeout).catch(() => false);
|
||||
const keyChangeResult = await keepass.changePublicKeys(tab, !!connectionTimeout, connectionTimeout).catch(() => false);
|
||||
|
||||
// Change public keys timeout
|
||||
if (!keyChangeResult) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue