]> git.deb.at Git - rhonda/impostor.git/commitdiff
Always flush recorder
authorAeonLucid <aeonlucid@outlook.com>
Thu, 29 Oct 2020 22:21:48 +0000 (23:21 +0100)
committerAeonLucid <aeonlucid@outlook.com>
Thu, 29 Oct 2020 22:21:48 +0000 (23:21 +0100)
src/Impostor.Server/Recorder/PacketRecorder.cs

index fc78c57730de6f0a9a88c487877512d4db0b206c..652496c34eeefda89f89d8494b9954bcac183c8e 100644 (file)
@@ -175,6 +175,7 @@ namespace Impostor.Server.Recorder
                     data.Position = 0;
 
                     await data.CopyToAsync(_writer);
+                    await _writer.FlushAsync();
                 }
             }
             finally
@@ -192,4 +193,4 @@ namespace Impostor.Server.Recorder
             _writerLock.Dispose();
         }
     }
-}
\ No newline at end of file
+}