Permalink
Browse files

Ensure shutdown callback is only called once

  • Loading branch information...
1 parent c10b193 commit 2db05ed9b4025cef6faa101c33ee7081607dc0a2 @Pita committed Dec 10, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 CacheAndBufferLayer.js
View
@@ -481,6 +481,7 @@ function flush (db, callback)
else if(db.shutdownCallback != null)
{
db.shutdownCallback();
+ db.shutdownCallback = null;
}
}

0 comments on commit 2db05ed

Please sign in to comment.