AUTH-1282: Fixed an issue where we were receiving as opposed sending on the channel.
This commit is contained in:
		
							parent
							
								
									148eea5899
								
							
						
					
					
						commit
						236a0a164d
					
				|  | @ -150,7 +150,7 @@ func StartProxyServer(logger *logrus.Logger, listener net.Listener, remote strin | ||||||
| 		done := make(chan struct{}) | 		done := make(chan struct{}) | ||||||
| 		go pinger(logger, conn, done) | 		go pinger(logger, conn, done) | ||||||
| 		defer func() { | 		defer func() { | ||||||
| 			<-done | 			done <- struct{}{} | ||||||
| 			conn.Close() | 			conn.Close() | ||||||
| 		}() | 		}() | ||||||
| 		Stream(&Conn{conn}, stream) | 		Stream(&Conn{conn}, stream) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue