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

Bugfix/fix file save
This commit is contained in:
C. Oceania 2024-06-19 12:30:28 -05:00 committed by GitHub
commit 8de6ed4603
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,3 @@
using Amazon.Runtime.Internal.Auth;
using BotSharp.Abstraction.Browsing;
using BotSharp.Abstraction.Browsing.Models;
using Microsoft.EntityFrameworkCore;
@ -231,7 +230,7 @@ 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);
Thread.Sleep(2000);
}
return true;