Browse Source

proxy: "Report in" clients when their info is looked up by username

Luke Dashjr 12 years ago
parent
commit
58e17e7275
1 changed files with 4 additions and 0 deletions
  1. 4 0
      driver-proxy.c

+ 4 - 0
driver-proxy.c

@@ -116,7 +116,11 @@ struct proxy_client *proxy_find_or_create_client(const char *username)
 			proxy_first_client(cgpu);
 			proxy_first_client(cgpu);
 	}
 	}
 	else
 	else
+	{
 		mutex_unlock(&proxy_clients_mutex);
 		mutex_unlock(&proxy_clients_mutex);
+		cgpu = client->cgpu;
+	}
+	thread_reportin(cgpu->thr[0]);
 	return client;
 	return client;
 }
 }