fix notmuch_database_close

2012-02-29 Thread Justus Winter
Pazz mentioned a problem wrt reopening a notmuch database immediately after it has been closed. The problem can be reproduced with this test case: ~~~ snip ~~~ import os import notmuch db_path = os.path.expanduser('~/Maildir') for i in range(2): with notmuch.Database(db_path,

fix notmuch_database_close

2012-02-29 Thread Justus Winter
Pazz mentioned a problem wrt reopening a notmuch database immediately after it has been closed. The problem can be reproduced with this test case: ~~~ snip ~~~ import os import notmuch db_path = os.path.expanduser('~/Maildir') for i in range(2): with notmuch.Database(db_path,