From f03a604204bbe0c79e53b01237a37e88683938c6 Mon Sep 17 00:00:00 2001
From: zhifu gao <zhifu.gzf@alibaba-inc.com>
Date: 星期六, 13 五月 2023 00:17:32 +0800
Subject: [PATCH] Merge pull request #505 from zhaomingwork/cpp-python-websocket-compatible

---
 funasr/fileio/datadir_writer.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/funasr/fileio/datadir_writer.py b/funasr/fileio/datadir_writer.py
index bafdf98..67ec61c 100644
--- a/funasr/fileio/datadir_writer.py
+++ b/funasr/fileio/datadir_writer.py
@@ -57,6 +57,7 @@
 
         self.keys.add(key)
         self.fd.write(f"{key} {value}\n")
+        self.fd.flush()
 
     def __exit__(self, exc_type, exc_val, exc_tb):
         self.close()

--
Gitblit v1.9.1