Browse Source

Set pool socket to INVSOCK after closing connection, just in case

Luke Dashjr 13 years ago
parent
commit
79e29205b5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      util.c

+ 1 - 0
util.c

@@ -1442,6 +1442,7 @@ void suspend_stratum(struct pool *pool)
 	pool->stratum_active = false;
 	mutex_unlock(&pool->stratum_lock);
 	CLOSESOCKET(pool->sock);
+	pool->sock = INVSOCK;
 }
 
 void dev_error(struct cgpu_info *dev, enum dev_reason reason)