prevents a goroutine from being leaked if a timeout occurs when calling forceCloseConnection
@@ -265,7 +265,7 @@ func (cs *ClientServerImpl) SetReadDeadline(t time.Time) error {
}
func (cs *ClientServerImpl) forceCloseConnection() {
- closeChan := make(chan error)
+ closeChan := make(chan error, 1)
go func() {
closeChan <- cs.Close()
}()
