Skip to content

Commit

Permalink
[pool] Fix check for reopenable pooled connections
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
Suresh Sundriyal authored and mcb30 committed Apr 12, 2016
1 parent 0eea8b5 commit 4afb758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/ipxe/pool.h
Expand Up @@ -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 ) ) );
}

Expand Down

0 comments on commit 4afb758

Please sign in to comment.