Add missing lock
This commit is contained in:
		
							parent
							
								
									ee24bd6bd3
								
							
						
					
					
						commit
						8e04f64e27
					
				| 
						 | 
				
			
			@ -397,7 +397,9 @@ func (rpc *AmqpRPCServer) Start(c cmd.Config) error {
 | 
			
		|||
					rpc.processMessage(msg)
 | 
			
		||||
				} else {
 | 
			
		||||
					rpc.log.Info(" [!] Finished processing messages")
 | 
			
		||||
					rpc.dMu.Lock()
 | 
			
		||||
					rpc.done = true
 | 
			
		||||
					rpc.dMu.Unlock()
 | 
			
		||||
					blocking = false
 | 
			
		||||
				}
 | 
			
		||||
			case err = <-closeChan:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue