summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py
index af5dde96..79417c92 100644
--- a/src/core.py
+++ b/src/core.py
@@ -2066,6 +2066,10 @@ class Core(object):
del tab.commands # and make the object collectable
tab.on_close()
self.tabs.remove(tab)
+ if tab.get_name() in logger.fds:
+ logger.fds[tab.get_name()].close()
+ log.debug("Log file for %s closed.", tab.get_name())
+ del logger.fds[tab.get_name()]
self.tabs[0].on_gain_focus()
self.refresh_window()
import gc