mirror of
				https://github.com/therootcompany/telebit.git
				synced 2025-10-30 21:02:46 +00:00 
			
		
		
		
	bugfix re-used buffer
This commit is contained in:
		
							parent
							
								
									494957c1c4
								
							
						
					
					
						commit
						38054cf331
					
				| @ -33,8 +33,8 @@ func (d *Decoder) StreamDecode(handler Handler, bufferSize int) error { | |||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	go func() { | 	go func() { | ||||||
| 		b := make([]byte, bufferSize) |  | ||||||
| 		for { | 		for { | ||||||
|  | 			b := make([]byte, bufferSize) | ||||||
| 			//fmt.Println("loopers gonna loop") | 			//fmt.Println("loopers gonna loop") | ||||||
| 			n, err := d.r.Read(b) | 			n, err := d.r.Read(b) | ||||||
| 			if n > 0 { | 			if n > 0 { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user