Merge pull request #134 from vguzmanp/patch-1

release lock in table.drop()
This commit is contained in:
Friedrich Lindenberg 2015-07-07 22:07:14 +03:00
commit 7cf087d6a2

View File

@ -45,6 +45,7 @@ class Table(object):
self._is_dropped = True self._is_dropped = True
self.database._tables.pop(self.table.name, None) self.database._tables.pop(self.table.name, None)
self.table.drop(self.database.engine) self.table.drop(self.database.engine)
self.database._release()
def _check_dropped(self): def _check_dropped(self):
if self._is_dropped: if self._is_dropped: