Skip to content

Commit

Permalink
Handle session thread (#3132)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinPihony authored Feb 29, 2024
1 parent 67523f4 commit 0405936
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ private[jms] final class JmsAckSession(override val connection: jms.Connection,

private def stopMessageListenerAndCloseSession(): Unit = {
try {
drainAcks()
if (session.getAcknowledgeMode() == jms.Session.CLIENT_ACKNOWLEDGE)
drainAcks()
} finally {
ackQueue.put(Left(SessionClosed))
session.close()
Expand Down

0 comments on commit 0405936

Please sign in to comment.