minor code review re. #1768

This commit is contained in:
gorhill 2016-06-29 13:56:10 -04:00
parent ca785bf8b1
commit 09d35b65e0
1 changed files with 4 additions and 0 deletions

View File

@ -374,6 +374,10 @@ vAPI.storage = (function() {
return null;
}
// Since database could be opened successfully, reset error flag (its
// purpose is to avoid spamming console with error messages).
dbOpenError = '';
// Database was opened, register cleanup task
cleanupTasks.push(close);