]> git.deb.at Git - rhonda/impostor.git/commitdiff
Preserve parent while copying
authorAeonLucid <aeonlucid@outlook.com>
Tue, 3 Nov 2020 01:37:08 +0000 (02:37 +0100)
committerAeonLucid <aeonlucid@outlook.com>
Tue, 3 Nov 2020 01:37:08 +0000 (02:37 +0100)
src/Impostor.Hazel/MessageReader.cs

index 97996c67ccf14e7669e57fdea1a0fbf00ec6c852..986d0b02463a0171e568efae45748f7bcc26db92 100644 (file)
@@ -235,7 +235,7 @@ namespace Impostor.Hazel
         public IMessageReader Copy(int offset = 0)
         {
             var reader = _pool.Get();
-            reader.Update(Buffer, Offset + offset, Position, Length - offset, Tag);
+            reader.Update(Buffer, Offset + offset, Position, Length - offset, Tag, Parent);
             return reader;
         }