Monitor should close what it inherits (#1076)

This commit is contained in:
Harry Uglow
2020-01-31 13:06:18 +00:00
committed by GitHub
parent 9ee399f5b2
commit ea25b9e8b2

View File

@@ -77,6 +77,7 @@ class Monitor(Wrapper):
self.total_steps += 1
def close(self):
super(Monitor, self).close()
if self.f is not None:
self.f.close()