Merge pull request #508 from iceljc/bugfix/fix-file-save

Bugfix/fix file save
This commit is contained in:
C. Oceania 2024-06-19 13:26:49 -05:00 committed by GitHub
commit bfe8936996
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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