File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,15 @@ class CoreClient {
5555 Utils . PrintStatistic ( context ) ;
5656 }
5757
58- context . sender && context . sender . detach ( ) ;
59- context . receiver && context . receiver . detach ( ) ;
60- context . connection . close ( ) ;
58+ context && context . sender && context . sender . detach ( ) ;
59+ context && context . receiver && context . receiver . detach ( ) ;
60+ context && context . connection . close ( ) ;
6161
62- this . server && this . server . close ( ) ;
63- process . exit ( ) ;
62+ if ( this . server ) {
63+ this . server . close ( ) ;
64+ return ;
65+ }
66+ process . exit ( 0 ) ;
6467 }
6568 }
6669
Original file line number Diff line number Diff line change @@ -87,7 +87,6 @@ class Receiver extends CoreClient {
8787 if ( ( ( ! self . options . processReplyTo ) || self . options . recvListen ) && self . received === self . expected ) {
8888 self . received = 0 ;
8989 self . cancelTimeout ( ) ;
90- self . server && context . delivery . accept ( ) ;
9190 self . close ( context , self . options . closeSleep ) ;
9291 }
9392
Original file line number Diff line number Diff line change 11{
22 "name" : " cli-rhea" ,
3- "version" : " 2.1.6 " ,
3+ "version" : " 2.1.7 " ,
44 "description" : " Client interface built on amqp/rhea lib" ,
55 "scripts" : {
66 "test" : " mocha test/*Test.js" ,
You can’t perform that action at this time.
0 commit comments