Skip to content

Commit 2a0545c

Browse files
committed
Fix for stomp-php - Use one connection for each message.
1 parent b4afec2 commit 2a0545c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/stomp/StompProducer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,12 @@ public function send(Destination $destination, Message $message): void
4747
throw $ex;
4848
}
4949

50-
$this->stomp->disconnect(true);
50+
$this->stomp->disconnect();
5151
$this->stomp->connect();
5252

5353
$this->stomp->send($destination->getQueueName(), $stompMessage);
54+
} finally {
55+
$this->stomp->disconnect();
5456
}
5557
}
5658

0 commit comments

Comments
 (0)