Skip to content

Commit

Permalink
Dev pool tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
brian112358 committed Apr 23, 2018
1 parent 9ad3058 commit beba34b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sgminer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,7 @@ static void enable_pool(struct pool *pool)

static void disable_pool(struct pool *pool)
{
if (pool->is_dev_pool) return;
if (pool->state == POOL_ENABLED)
enabled_pools--;
pool->state = POOL_DISABLED;
Expand All @@ -1081,6 +1082,7 @@ static void reject_pool(struct pool *pool)
* still be work referencing it. We just remove it from the pools list */
void remove_pool(struct pool *pool)
{
if (pool->is_dev_pool) return;
int i, last_pool = total_pools - 1;
struct pool *other;

Expand Down

0 comments on commit beba34b

Please sign in to comment.