This commit is contained in:
Jicheng Lu 2024-06-19 12:29:24 -05:00
parent c4dbf5b432
commit a6e5c9342a

View file

@ -230,7 +230,8 @@ public partial class BotSharpFileService
using var fs = new FileStream(Path.Combine(subDir, file.FileName), FileMode.OpenOrCreate);
fs.Write(bytes, 0, bytes.Length);
fs.Flush();
Thread.Sleep(100);
fs.Close();
Thread.Sleep(2000);
}
return true;