Fix main loop aborting after one frontend request
This commit is contained in:
		
							parent
							
								
									ffc082c5fa
								
							
						
					
					
						commit
						76a757a943
					
				|  | @ -256,11 +256,12 @@ main_loop( | ||||||
|   #rabbit_cli{priv = #?MODULE{connection = Connection}} = Context) -> |   #rabbit_cli{priv = #?MODULE{connection = Connection}} = Context) -> | ||||||
|     ?LOG_DEBUG("CLI: frontend main loop..."), |     ?LOG_DEBUG("CLI: frontend main loop..."), | ||||||
|     receive |     receive | ||||||
|         {frontend_request, From, Request} -> |  | ||||||
|             Reply = handle_request(Request), |  | ||||||
|             rabbit_cli_transport2:gen_reply(Connection, From, Reply); |  | ||||||
|         {'EXIT', _LinkedPid, Reason} -> |         {'EXIT', _LinkedPid, Reason} -> | ||||||
|             terminate(Reason, Context); |             terminate(Reason, Context); | ||||||
|  |         {frontend_request, From, Request} -> | ||||||
|  |             Reply = handle_request(Request), | ||||||
|  |             _ = rabbit_cli_transport2:gen_reply(Connection, From, Reply), | ||||||
|  |             main_loop(Context); | ||||||
|         Info -> |         Info -> | ||||||
|             ?LOG_DEBUG("Unknown info: ~0p", [Info]), |             ?LOG_DEBUG("Unknown info: ~0p", [Info]), | ||||||
|             main_loop(Context) |             main_loop(Context) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue