mirror of
				https://github.com/ergochat/ergo.git
				synced 2025-10-31 22:07:23 +01:00 
			
		
		
		
	more logging; check client for each reply
This commit is contained in:
		
							parent
							
								
									11537ad975
								
							
						
					
					
						commit
						8902ee040d
					
				| @ -127,7 +127,7 @@ func (client *Client) Destroy() { | ||||
| 	} | ||||
| 
 | ||||
| 	if DEBUG_CLIENT { | ||||
| 		log.Printf("%s destroy", client) | ||||
| 		log.Printf("%s.Destroy", client) | ||||
| 	} | ||||
| 
 | ||||
| 	client.destroyed = true | ||||
| @ -153,13 +153,13 @@ func (client *Client) Destroy() { | ||||
| } | ||||
| 
 | ||||
| func (client *Client) Reply(replies ...Reply) { | ||||
| 	if client.destroyed { | ||||
| 		if DEBUG_CLIENT { | ||||
| 			log.Printf("%s.Reply: destroyed", client) | ||||
| 		} | ||||
| 		return | ||||
| 	} | ||||
| 	for _, reply := range replies { | ||||
| 		if client.destroyed { | ||||
| 			if DEBUG_CLIENT { | ||||
| 				log.Printf("%s.Reply: destroyed: %s", client, reply) | ||||
| 			} | ||||
| 			break | ||||
| 		} | ||||
| 		client.replies <- reply | ||||
| 	} | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jeremy Latt
						Jeremy Latt