Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions streaming/base/shared/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ def __init__(self,
original_rtracker_reg = resource_tracker.register

try:
if create is True:
# Creates a new shared memory block
shm = BuiltinSharedMemory(name, create, size)
self.created_shms.append(shm)
elif create is False:
if create is False:
# Avoid tracking shared memory resources in a process who attaches to an existing
# shared memory block because the process who created the shared memory is
# responsible for destroying the shared memory block.
Expand Down