[pool] Fix check for reopenable pooled connections

Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/52/head
Suresh Sundriyal 2016-04-12 14:18:17 +01:00 committed by Michael Brown
parent 0eea8b5c3b
commit 4afb758423
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ pool_is_reopenable ( struct pooled_connection *pool ) {
/* A connection is reopenable if it has been recycled but is
* not yet known to be alive.
*/
return ( ( pool->flags & POOL_RECYCLED ) &
return ( ( pool->flags & POOL_RECYCLED ) &&
( ! ( pool->flags & POOL_ALIVE ) ) );
}