Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit c30d811

Browse files
committed
Add PCL Tweaks
1 parent 5dfdcf6 commit c30d811

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ServiceStack.Text/RecyclableMemoryStream.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,7 @@ protected override void Dispose(bool disposing)
934934

935935
Events.Write.MemoryStreamFinalized(this.id, this.tag, this.allocationStack);
936936

937+
#if !PCL
937938
if (AppDomain.CurrentDomain.IsFinalizingForUnload())
938939
{
939940
// If we're being finalized because of a shutdown, don't go any further.
@@ -945,6 +946,7 @@ protected override void Dispose(bool disposing)
945946

946947
this.memoryManager.ReportStreamFinalized();
947948
}
949+
#endif
948950

949951
this.memoryManager.ReportStreamLength(this.length);
950952

0 commit comments

Comments
 (0)