mirror of
https://github.com/apache/activemq.git
synced 2025-02-09 19:45:55 +00:00
It's possible the prefered wireformat could be null
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@640684 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c04d8c548d
commit
f9585fd6ab
@ -61,7 +61,9 @@ public class WireFormatNegotiator extends TransportFilter {
|
|||||||
// Setup the initial negociation timeout to be the same as the inital max inactivity delay specified on the wireformat
|
// Setup the initial negociation timeout to be the same as the inital max inactivity delay specified on the wireformat
|
||||||
// Does not make sense for us to take longer.
|
// Does not make sense for us to take longer.
|
||||||
try {
|
try {
|
||||||
|
if( wireFormat.getPreferedWireFormatInfo() !=null ) {
|
||||||
setNegotiateTimeout(wireFormat.getPreferedWireFormatInfo().getMaxInactivityDurationInitalDelay());
|
setNegotiateTimeout(wireFormat.getPreferedWireFormatInfo().getMaxInactivityDurationInitalDelay());
|
||||||
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user