diff options
| author | Gordon Sim <gsim@apache.org> | 2010-03-29 18:15:42 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2010-03-29 18:15:42 +0000 |
| commit | adfea171e68298b9b0ced9fe54c2232b963e077e (patch) | |
| tree | cc51faebbf79d6b1ac84360e2ad6526939912563 /cpp/src/qpid/client/amqp0_10/OutgoingMessage.cpp | |
| parent | c2b13417889ca05c880736e49bba91fb1ba4bd5d (diff) | |
| download | qpid-python-adfea171e68298b9b0ced9fe54c2232b963e077e.tar.gz | |
QPID-2406: a more explicit solution for durations in the messaging api
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@928855 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/amqp0_10/OutgoingMessage.cpp')
| -rw-r--r-- | cpp/src/qpid/client/amqp0_10/OutgoingMessage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/amqp0_10/OutgoingMessage.cpp b/cpp/src/qpid/client/amqp0_10/OutgoingMessage.cpp index e75368cda7..d0d945b934 100644 --- a/cpp/src/qpid/client/amqp0_10/OutgoingMessage.cpp +++ b/cpp/src/qpid/client/amqp0_10/OutgoingMessage.cpp @@ -47,7 +47,7 @@ void OutgoingMessage::convert(const qpid::messaging::Message& from) message.getMessageProperties().setReplyTo(AddressResolution::convert(address)); } translate(from.getHeaders(), message.getMessageProperties().getApplicationHeaders()); - message.getDeliveryProperties().setTtl(from.getTtl()); + message.getDeliveryProperties().setTtl(from.getTtl().getMilliseconds()); if (from.getDurable()) { message.getDeliveryProperties().setDeliveryMode(DELIVERY_MODE_PERSISTENT); } |
