log_event: Close the lock file after we're done with it

(imported from commit 023e50e1aeeafee334f9b55e12ab91aa84a7872a)
This commit is contained in:
Keegan McAllister 2012-11-14 10:41:03 -05:00
parent 905f2d3235
commit f132cd311b

View File

@ -482,6 +482,7 @@ def log_event(event):
f.flush()
f.close()
fcntl.flock(lock, fcntl.LOCK_UN)
lock.close()
def log_message(message):
if not message.sending_client.name.startswith("test:"):