Skip to content

Commit 130e934

Browse files
dirk39leadspark
authored andcommitted
clean rdKafkaConsumers list when context is close
1 parent 44020f9 commit 130e934

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/rdkafka/RdKafkaContext.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ public function close(): void
133133
{
134134
$kafkaConsumers = $this->kafkaConsumers;
135135
$this->kafkaConsumers = [];
136+
$this->rdKafkaConsumers = [];
136137

137138
foreach ($kafkaConsumers as $kafkaConsumer) {
138139
$kafkaConsumer->unsubscribe();

0 commit comments

Comments
 (0)