mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +08:00
log_event: Close the lock file after we're done with it
(imported from commit 023e50e1aeeafee334f9b55e12ab91aa84a7872a)
This commit is contained in:
parent
905f2d3235
commit
f132cd311b
@ -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:"):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user