File tree Expand file tree Collapse file tree 2 files changed +36
-15
lines changed
src/com/rabbitmq/client/impl Expand file tree Collapse file tree 2 files changed +36
-15
lines changed Original file line number Diff line number Diff line change 4444 <target name =" amqp-generate" depends =" amqp-generate-check"
4545 unless =" amqp.generate.notRequired" description =" generate AMQP.java and AMQImpl.java from AMQP spec" >
4646 <mkdir dir =" ${ src.generated } /com/rabbitmq/client/" />
47- <exec dir =" ." executable =" python" output =" ${ src.generated } /com/rabbitmq/client/AMQP.java" >
47+ <exec dir =" ." executable =" python"
48+ output =" ${ src.generated } /com/rabbitmq/client/AMQP.java"
49+ errorproperty =" amqp.generate.error1"
50+ resultproperty =" amqp.generate.result1" >
4851 <arg line =" codegen.py" />
4952 <arg line =" header" />
5053 <arg line =" ${ AMQP_SPEC_JSON_PATH } " />
5154 </exec >
55+ <fail message =" Generation of AMQP.java failed with message:${ line.separator } ${ amqp.generate.error1 } " >
56+ <condition >
57+ <not >
58+ <equals arg1=" ${ amqp.generate.result1 } " arg2=" 0" />
59+ </not >
60+ </condition >
61+ </fail >
5262 <mkdir dir =" ${ src.generated } /com/rabbitmq/client/impl" />
53- <exec dir =" ." executable =" python" output =" ${ src.generated } /com/rabbitmq/client/impl/AMQImpl.java" >
63+ <exec dir =" ." executable =" python"
64+ output =" ${ src.generated } /com/rabbitmq/client/impl/AMQImpl.java"
65+ errorproperty =" amqp.generate.error2"
66+ resultproperty =" amqp.generate.result2" >
5467 <arg line =" codegen.py" />
5568 <arg line =" body" />
5669 <arg line =" ${ AMQP_SPEC_JSON_PATH } " />
5770 </exec >
71+ <fail message =" Generation of AMQPImpl.java failed with message:${ line.separator } ${ amqp.generate.error2 } " >
72+ <condition >
73+ <not >
74+ <equals arg1=" ${ amqp.generate.result2 } " arg2=" 0" />
75+ </not >
76+ </condition >
77+ </fail >
5878 </target >
5979
6080 <target name =" build" depends =" amqp-generate" >
Original file line number Diff line number Diff line change @@ -540,22 +540,23 @@ public boolean processControlCommand(Command c)
540540 // See the detailed comments in ChannelN.processAsync.
541541
542542 Method method = c .getMethod ();
543- if (isOpen ()) {
544- // Normal command.
545- if (method instanceof AMQP .Connection .Close ) {
546- handleConnectionClose (c );
547- return true ;
548- } else {
549- return false ;
550- }
543+
544+ if (method instanceof AMQP .Connection .Close ) {
545+ handleConnectionClose (c );
546+ return true ;
551547 } else {
552- // Quiescing.
553- if (method instanceof AMQP .Connection .CloseOk ) {
554- // It's our final "RPC".
548+ if (isOpen ()) {
549+ // Normal command.
555550 return false ;
556551 } else {
557- // Ignore all others.
558- return true ;
552+ // Quiescing.
553+ if (method instanceof AMQP .Connection .CloseOk ) {
554+ // It's our final "RPC".
555+ return false ;
556+ } else {
557+ // Ignore all others.
558+ return true ;
559+ }
559560 }
560561 }
561562 }
You can’t perform that action at this time.
0 commit comments