Merge pull request #58 from keepassxreboot/fix_listener_leak

Fix listener leaking
This commit is contained in:
Janek Bevendorff 2018-05-08 20:42:54 +02:00 committed by GitHub
commit a79f27319a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1176,7 +1176,7 @@ cip.detectDatabaseChange = function() {
browser.runtime.sendMessage({
action: 'check_databasehash'
}).then((response) => {
if (response.new === 'no-hash') {
if (response.new === 'no-hash' && response.old !== 'no-hash') {
cipEvents.clearCredentials();
browser.runtime.sendMessage({