From 65160c381b15df85eb1833118f4663529c4cc9ae Mon Sep 17 00:00:00 2001 From: Pavel Cisar Date: Thu, 29 Jan 2015 08:52:21 +0000 Subject: [PATCH] - Additional fix related to PYFB-43 --- fdb/fbcore.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fdb/fbcore.py b/fdb/fbcore.py index 61f1c04..7437b43 100644 --- a/fdb/fbcore.py +++ b/fdb/fbcore.py @@ -1737,6 +1737,7 @@ def __wait_for_events(self): self.buf_length,self.event_buf, self.__callback,self.result_buf) if db_api_error(self._isc_status): + self.close() raise exception_from_status(DatabaseError, self._isc_status, "Error while waiting for events:") def count_and_reregister(self):