Skip to content

Commit

Permalink
Merge pull request #506 from iceljc/bugfix/fix-file-save
Browse files Browse the repository at this point in the history
Bugfix/fix file save
  • Loading branch information
Oceania2018 authored Jun 19, 2024
2 parents 76de173 + 716008c commit 8de6ed4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Amazon.Runtime.Internal.Auth;
using BotSharp.Abstraction.Browsing;
using BotSharp.Abstraction.Browsing.Models;
using Microsoft.EntityFrameworkCore;
Expand Down Expand Up @@ -231,7 +230,7 @@ public bool SaveMessageFiles(string conversationId, string messageId, string sou
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;
Expand Down

0 comments on commit 8de6ed4

Please sign in to comment.