Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphtheninja committed Aug 29, 2017
1 parent 1f8d697 commit e98fc7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/levelup.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ function getOptions (options) {

function maybeError (db, callback) {
if (!db._isOpening() && !db.isOpen()) {
callback(new ReadError('Database is not open'))
process.nextTick(callback, new ReadError('Database is not open'))
return true
}
}
Expand Down

0 comments on commit e98fc7f

Please sign in to comment.