Merge pull request #508 from iceljc/bugfix/fix-file-save
Bugfix/fix file save
This commit is contained in:
commit
bfe8936996
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue