added explicit disconnect after Chris T.'s patch

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@511781 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2007-02-26 10:55:53 +00:00
parent c0fb0c5584
commit 6c57f721c2
4 changed files with 6 additions and 1 deletions

View File

@ -42,6 +42,7 @@ begin
STDIN.each_line { |line|
@conn.send @destination, line, @headers
}
@conn.disconnect
rescue
end

View File

@ -48,3 +48,4 @@ while true
$stdout.print "#{@msg.command}: #{@msg.body}\n"
end
end
@conn.disconnect

View File

@ -63,3 +63,5 @@ for i in 1..(@batches)
end
@conn.send '/topic/event', "SHUTDOWN", {'persistent'=>'false'}
@conn.disconnect

View File

@ -43,7 +43,8 @@ begin
$stdout.flush
@conn.ack @msg.headers["message-id"]
end
@conn.disconnect
rescue
end