Fix for double reconnect

This commit is contained in:
varjolintu 2019-05-07 10:16:13 +03:00
parent 389c99b7fd
commit 74ffbd09fe
2 changed files with 1 additions and 5 deletions

View file

@ -153,8 +153,6 @@ kpxcEvent.onGetStatus = function(callback, tab, internalPoll = false, triggerUnl
};
kpxcEvent.onReconnect = function(callback, tab) {
keepass.connectToNative();
// Add a small timeout after reconnecting. Just to make sure. It's not pretty, I know :(
setTimeout(() => {
keepass.reconnect(callback, tab).then((configured) => {

View file

@ -1153,9 +1153,7 @@ keepass.disableAutomaticReconnect = function() {
};
keepass.reconnect = async function(callback, tab) {
////keepass.connectToNative();
const port = keepass.nativeConnect();
console.log(port);
keepass.connectToNative();
keepass.generateNewKeyPair();
keepass.changePublicKeys(tab, true).then(r => true).catch(e => false);
};