fixed nasty bug that made XGB not thread safe
This commit is contained in:
		@@ -303,8 +303,8 @@ func (c *Conn) readResponses() {
 | 
				
			|||||||
		replyBytes []byte
 | 
							replyBytes []byte
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	buf := make([]byte, 32)
 | 
					 | 
				
			||||||
	for {
 | 
						for {
 | 
				
			||||||
 | 
							buf := make([]byte, 32)
 | 
				
			||||||
		err, event, seq = nil, nil, 0
 | 
							err, event, seq = nil, nil, 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if _, err := io.ReadFull(c.conn, buf); err != nil {
 | 
							if _, err := io.ReadFull(c.conn, buf); err != nil {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user