diff --git a/src/pyedb/dotnet/edb.py b/src/pyedb/dotnet/edb.py index a3f62e8880..136567b483 100644 --- a/src/pyedb/dotnet/edb.py +++ b/src/pyedb/dotnet/edb.py @@ -668,7 +668,8 @@ def create_edb(self): # self.standalone = False self.core.Database.SetRunAsStandAlone(self.standalone) - + if self._db: # pragma no cover + self._db.Close() self._db = self.core.Database.Create(self.edbpath) if not self._db: