Commit 0aa1bb73 authored by Thomas Lavocat's avatar Thomas Lavocat
Browse files

Correct unclosed files issue

parent 61bc6452
...@@ -149,6 +149,7 @@ def runner(argv, Controler=None): ...@@ -149,6 +149,7 @@ def runner(argv, Controler=None):
hlist = ",".join(f.readlines()) hlist = ",".join(f.readlines())
hlist = hlist.replace("\n", "") hlist = hlist.replace("\n", "")
hlist = hlist.replace("\r", "") hlist = hlist.replace("\r", "")
f.close()
# Remove unecessary / # Remove unecessary /
if epath != "" and not epath.endswith("/") : if epath != "" and not epath.endswith("/") :
epath = epath+"/" epath = epath+"/"
......
...@@ -314,6 +314,7 @@ class Bridge(Thread): ...@@ -314,6 +314,7 @@ class Bridge(Thread):
finally: finally:
self.bridge_dead() self.bridge_dead()
logger.fatal("error") logger.fatal("error")
self.close()
def bridge_dead(self): def bridge_dead(self):
self.dead = True self.dead = True
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment