Skip to content

Commit

Permalink
Merge pull request #663 from TransFICC/bug/clean-up-resources-in-netw…
Browse files Browse the repository at this point in the history
…ork-publication

[Tom/Michael/Andrey] Close NetworkPublication::senderBpe
  • Loading branch information
mjpt777 authored May 2, 2019
2 parents 61f34f3 + 065f19b commit 622127a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1034,8 +1034,6 @@ private NetworkPublication newNetworkPublication(
tempBuffer, countersManager, registrationId, sessionId, streamId, channel);
final UnsafeBufferPosition senderLimit = SenderLimit.allocate(
tempBuffer, countersManager, registrationId, sessionId, streamId, channel);
final AtomicCounter senderBpe = SenderBpe.allocate(
tempBuffer, countersManager, registrationId, sessionId, streamId, channel);

if (params.isReplay)
{
Expand Down Expand Up @@ -1068,7 +1066,7 @@ private NetworkPublication newNetworkPublication(
publisherLimit,
senderPosition,
senderLimit,
senderBpe,
SenderBpe.allocate(tempBuffer, countersManager, registrationId, sessionId, streamId, channel),
sessionId,
streamId,
initialTermId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ public void close()
publisherLimit.close();
senderPosition.close();
senderLimit.close();
senderBpe.close();
for (final ReadablePosition position : spyPositions)
{
position.close();
Expand Down

0 comments on commit 622127a

Please sign in to comment.