Skip to content

Commit

Permalink
Also close DTZ tables
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Mar 18, 2015
1 parent 45868f9 commit 5fffad2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chess/syzygy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1633,6 +1633,10 @@ def close(self):
_, wdl = self.wdl.popitem()
wdl.close()

while self.dtz:
_, dtz = self.dtz.popitem()
dtz.close()

def __enter__(self):
return self

Expand Down

0 comments on commit 5fffad2

Please sign in to comment.